diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:19:43 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:19:43 -0500 |
commit | 7703c9431d6989af12e9c75a35cf8f641482a81f (patch) | |
tree | 9048ce54932a60bf0b685da7a17bec0f9c845cb8 | |
parent | 303ff7d64594d154f5d7e26c4bd8beaa321d70dd (diff) | |
download | ampache-7703c9431d6989af12e9c75a35cf8f641482a81f.tar.gz ampache-7703c9431d6989af12e9c75a35cf8f641482a81f.tar.bz2 ampache-7703c9431d6989af12e9c75a35cf8f641482a81f.zip |
Query::clean() -> Query::gc()
-rw-r--r-- | lib/class/query.class.php | 4 | ||||
-rw-r--r-- | lib/class/vauth.class.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/query.class.php b/lib/class/query.class.php index 2e8e1a5c..ea451a45 100644 --- a/lib/class/query.class.php +++ b/lib/class/query.class.php @@ -210,10 +210,10 @@ class Query { } /** - * clean + * gc * This cleans old data out of the table */ - public static function clean() { + public static function gc() { $sql = "DELETE FROM `tmp_browse` USING `tmp_browse` LEFT JOIN ". "`session` ON `session`.`id`=`tmp_browse`.`sid` " . "WHERE `session`.`id` IS NULL"; diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php index b2f1d909..b978c35c 100644 --- a/lib/class/vauth.class.php +++ b/lib/class/vauth.class.php @@ -142,7 +142,7 @@ class vauth { $db_results = Dba::write($sql); // Also clean up things that use sessions as keys - Query::clean(); + Query::gc(); Tmp_Playlist::gc(); return true; |