diff options
author | Chris Slamar <chris@slamar.org> | 2011-01-24 19:25:01 -0600 |
---|---|---|
committer | Chris Slamar <chris@slamar.org> | 2011-01-24 19:25:01 -0600 |
commit | 4910d13fa4623246db810347def57106dd85c9a9 (patch) | |
tree | 7b57a3c13f70572cde82bd343967dff33b331ae2 /browse.php | |
parent | fc355baf6764ffb87b74002b3a4419a63dab34b1 (diff) | |
download | ampache-4910d13fa4623246db810347def57106dd85c9a9.tar.gz ampache-4910d13fa4623246db810347def57106dd85c9a9.tar.bz2 ampache-4910d13fa4623246db810347def57106dd85c9a9.zip |
Catalog Filtering Added Bug#60
Diffstat (limited to 'browse.php')
-rw-r--r-- | browse.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -32,6 +32,8 @@ /* Base Require */ require_once 'lib/init.php'; +session_start(); + // This page is a little wonky we don't want the sidebar until we know what // type we're dealing with so we've got a little switch here that creates the // type.. this feels hackish... @@ -56,6 +58,7 @@ switch($_REQUEST['action']) { case 'file': break; case 'album': + $browse->set_filter('catalog',$_SESSION['catalog']); $browse->set_sort('name','ASC'); $browse->show_objects(); break; @@ -73,10 +76,12 @@ switch($_REQUEST['action']) { require_once Config::get('prefix') . '/templates/browse_content.inc.php'; break; case 'artist': + $browse->set_filter('catalog',$_SESSION['catalog']); $browse->set_sort('name','ASC'); $browse->show_objects(); break; case 'song': + $browse->set_filter('catalog',$_SESSION['catalog']); $browse->set_sort('title','ASC'); $browse->show_objects(); break; |