summaryrefslogtreecommitdiffstats
path: root/browse.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2011-04-02 00:22:55 -0400
committerPaul Arthur <flowerysong00@yahoo.com>2011-04-02 00:48:58 -0400
commita9da6a6fa22325ba0dfecd4d46ae23305473796f (patch)
treeacef914ee602bfeb3eed98f5f06e79603a6eb74f /browse.php
parent91a6eb3a682667f49122fab5d807e8650c0d3959 (diff)
downloadampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.gz
ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.bz2
ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.zip
Reworked search
Still has tentacles and should have been integrated into the existing API/Browse implementation better, but it's functional.
Diffstat (limited to 'browse.php')
-rw-r--r--browse.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/browse.php b/browse.php
index 91f6e30a..62f4cdfd 100644
--- a/browse.php
+++ b/browse.php
@@ -55,6 +55,7 @@ switch ($_REQUEST['action']) {
case 'album':
case 'artist':
case 'playlist':
+ case 'smartplaylist':
case 'live_stream':
case 'video':
case 'song':
@@ -108,6 +109,11 @@ switch($_REQUEST['action']) {
$browse->set_filter('playlist_type','1');
$browse->show_objects();
break;
+ case 'smartplaylist':
+ $browse->set_sort('type', 'ASC');
+ $browse->set_filter('playlist_type','1');
+ $browse->show_objects();
+ break;
case 'video':
$browse->set_sort('title','ASC');
$browse->show_objects();