summaryrefslogtreecommitdiffstats
path: root/lib/class/browse.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-09 15:32:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-09 15:32:18 +0000
commit50036b1fad29cc7e2b2da30cc63d95e48c625a2a (patch)
tree042c5dc1a29cdc5901138ef4267309e4dbd97035 /lib/class/browse.class.php
parent242401a915eb2600f242af92c98cc9dc7190735c (diff)
downloadampache-50036b1fad29cc7e2b2da30cc63d95e48c625a2a.tar.gz
ampache-50036b1fad29cc7e2b2da30cc63d95e48c625a2a.tar.bz2
ampache-50036b1fad29cc7e2b2da30cc63d95e48c625a2a.zip
fix some browsing issues I created with the query switch, considering having browse class extend query
Diffstat (limited to 'lib/class/browse.class.php')
-rw-r--r--lib/class/browse.class.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php
index 99fd42da..2aea8a8d 100644
--- a/lib/class/browse.class.php
+++ b/lib/class/browse.class.php
@@ -211,6 +211,16 @@ class Browse {
} // set_static_content
/**
+ * save_objects
+ * This calles the internal query stuff
+ */
+ public static function save_objects($results) {
+
+ Query::save_objects($results);
+
+ } // save_objects
+
+ /**
* get_saved
* This looks in the session for the saved
* stuff and returns what it finds
@@ -224,7 +234,7 @@ class Browse {
if (!Query::is_simple()) {
// If not then we're going to need to read from the database :(
- $sid = session_id() . '::' . self::$type;
+ $sid = session_id() . '::' . Query::get_type();
$sql = "SELECT `data` FROM `tmp_browse` WHERE `sid`='$sid'";
$db_results = Dba::read($sql);