diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-29 08:01:12 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-29 08:01:12 +0000 |
commit | c53ca35a0d401b1ccb8b8c805f0bc7a643bd8aad (patch) | |
tree | 0470631cc769c8c75810a5fa23c0df28ddd6180c | |
parent | 49ad05da3ef7b7d0ee54e2385d8391343e30108b (diff) | |
download | ampache-c53ca35a0d401b1ccb8b8c805f0bc7a643bd8aad.tar.gz ampache-c53ca35a0d401b1ccb8b8c805f0bc7a643bd8aad.tar.bz2 ampache-c53ca35a0d401b1ccb8b8c805f0bc7a643bd8aad.zip |
fixed install, fixed default sort on single album view
-rw-r--r-- | install.php | 1 | ||||
-rw-r--r-- | lib/class/browse.class.php | 4 | ||||
-rw-r--r-- | templates/show_album.inc.php | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/install.php b/install.php index 5e673665..6bc97ade 100644 --- a/install.php +++ b/install.php @@ -25,6 +25,7 @@ error_reporting(E_ALL ^ E_NOTICE); require_once 'lib/general.lib.php'; require_once 'lib/class/config.class.php'; require_once 'lib/class/vauth.class.php'; +require_once 'lib/class/database_object.class.php'; require_once 'lib/ui.lib.php'; require_once 'lib/log.lib.php'; require_once 'modules/horde/Browser.php'; diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index 58fabccf..2cb2759e 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -233,8 +233,8 @@ class Browse { case 'artist': $valid_array = array('name'); break; - case 'genre': - $valid_array = array('name'); + case 'tag': + $valid_array = array('tag'); break; case 'album': $valid_array = array('name','year'); diff --git a/templates/show_album.inc.php b/templates/show_album.inc.php index 7f20a7eb..59ebe83a 100644 --- a/templates/show_album.inc.php +++ b/templates/show_album.inc.php @@ -87,6 +87,7 @@ $title = scrub_out($album->name) . ' (' . $album->year . ')' . $disk .'&nb <?php Browse::set_type('song'); Browse::set_filter('album', $album->id); + Browse::set_sort('track','ASC'); Browse::get_objects(); Browse::show_objects(); ?> |