summaryrefslogtreecommitdiffstats
path: root/browse.php
diff options
context:
space:
mode:
authorChris Slamar <chris@slamar.org>2011-01-24 19:25:01 -0600
committerChris Slamar <chris@slamar.org>2011-01-24 19:25:01 -0600
commit4910d13fa4623246db810347def57106dd85c9a9 (patch)
tree7b57a3c13f70572cde82bd343967dff33b331ae2 /browse.php
parentfc355baf6764ffb87b74002b3a4419a63dab34b1 (diff)
downloadampache-4910d13fa4623246db810347def57106dd85c9a9.tar.gz
ampache-4910d13fa4623246db810347def57106dd85c9a9.tar.bz2
ampache-4910d13fa4623246db810347def57106dd85c9a9.zip
Catalog Filtering Added Bug#60
Diffstat (limited to 'browse.php')
-rw-r--r--browse.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/browse.php b/browse.php
index 3ffaf5b9..c56e5608 100644
--- a/browse.php
+++ b/browse.php
@@ -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;