summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-06 19:51:25 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-06 19:51:25 -0800
commit5a7449f31574c7c548abe4244a6ba0993138e013 (patch)
treedd88dbe8e33005de5fb46614d7a28dbdb1e3e502 /modules/gallery/helpers/module.php
parent112aafe5137220181dd74afc509fa6cd39573028 (diff)
Update more database calls.
Diffstat (limited to 'modules/gallery/helpers/module.php')
-rw-r--r--modules/gallery/helpers/module.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php
index 14caa89b..b8928f7b 100644
--- a/modules/gallery/helpers/module.php
+++ b/modules/gallery/helpers/module.php
@@ -460,7 +460,11 @@ class module_Core {
$var->delete();
}
- Database::instance()->delete("vars", array("module_name" => "gallery", "name" => "_cache"));
+ db::build()
+ ->delete("vars")
+ ->where("module_name", "=", "gallery")
+ ->where("name", "=", "_cache")
+ ->execute();
self::$var_cache = null;
}