summaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
commit7f3669335313adf9108119df4186a51a5f94e292 (patch)
treef8b488a09df2198723de5661b050bc31e112b7ab /search.php
parentc1ed41a16dcbf1a632ad2ac99b40174628bf072e (diff)
downloadampache-7f3669335313adf9108119df4186a51a5f94e292.tar.gz
ampache-7f3669335313adf9108119df4186a51a5f94e292.tar.bz2
ampache-7f3669335313adf9108119df4186a51a5f94e292.zip
Change Browse from static to instantiable. Among other things, fixes FS#13;
probably also breaks things. Most things appear to still work, but I may have missed some cases.
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 4aedf327..419e6740 100644
--- a/search.php
+++ b/search.php
@@ -41,12 +41,13 @@ switch ($_REQUEST['action']) {
break;
}
case 'search':
+ $browse = new Browse();
require_once Config::get('prefix') . '/templates/show_search.inc.php';
require_once Config::get('prefix') . '/templates/show_search_options.inc.php';
$results = run_search($_REQUEST);
- Browse::set_type('song');
- Browse::reset();
- Browse::show_objects($results);
+ $browse->set_type('song');
+ $browse->show_objects($results);
+ $browse->store();
break;
case 'save_as_track':
$playlist_id = save_search($_REQUEST);