summaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 03:12:12 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 03:12:12 +0000
commitd48a431606385a618a31eb007b1527c8d8dd075d (patch)
tree3f551897a57aa939a7ea20796bcf645477d7b2d2 /search.php
parent1fc55df5bd2cf33c9a68789f9c2b26e50139eb85 (diff)
downloadampache-d48a431606385a618a31eb007b1527c8d8dd075d.tar.gz
ampache-d48a431606385a618a31eb007b1527c8d8dd075d.tar.bz2
ampache-d48a431606385a618a31eb007b1527c8d8dd075d.zip
fixed searching via quicksearch bar
Diffstat (limited to 'search.php')
-rw-r--r--search.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/search.php b/search.php
index 7e2af8a6..a6ef9b64 100644
--- a/search.php
+++ b/search.php
@@ -41,9 +41,10 @@ switch ($_REQUEST['action']) {
break;
}
case 'search':
- show_template('show_search');
+ require_once Config::get('prefix') . '/templates/show_search.inc.php';
$results = run_search($_REQUEST);
- show_search($_REQUEST['object_type'],$results);
+ Browse::set_type('song');
+ Browse::show_objects($results);
break;
case 'save_as_track':
$playlist_id = save_search($_REQUEST);
@@ -51,7 +52,7 @@ switch ($_REQUEST['action']) {
show_confirmation("Search Saved","Your Search has been saved as a track in $playlist->name",conf('web_path') . "/search.php");
break;
default:
- show_template('show_search');
+ require_once Config::get('prefix') . '/templates/show_search.inc.php';
break;
}