summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/graphics.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/graphics.php
parent112aafe5137220181dd74afc509fa6cd39573028 (diff)
Update more database calls.
Diffstat (limited to 'modules/gallery/helpers/graphics.php')
-rw-r--r--modules/gallery/helpers/graphics.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index 6fab0b54..7577d7ac 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -74,7 +74,10 @@ class graphics_Core {
* @param string $module_name
*/
static function remove_rules($module_name) {
- $status = Database::instance()->delete("graphics_rules", array("module_name" => $module_name));
+ $status = db::build()
+ ->delete("graphics_rules")
+ ->where("module_name", "=", $module_name)
+ ->execute();
if (count($status)) {
self::mark_dirty(true, true);
}
@@ -86,8 +89,11 @@ class graphics_Core {
* module it won't cause all of your images to suddenly require a rebuild.
*/
static function activate_rules($module_name) {
- Database::instance()
- ->update("graphics_rules",array("active" => true), array("module_name" => $module_name));
+ db::build()
+ ->update("graphics_rules")
+ ->set("active", true)
+ ->where("module_name", "=", $module_name)
+ ->execute();
}
/**
@@ -96,8 +102,11 @@ class graphics_Core {
* module it won't cause all of your images to suddenly require a rebuild.
*/
static function deactivate_rules($module_name) {
- Database::instance()
- ->update("graphics_rules",array("active" => false), array("module_name" => $module_name));
+ db::build()
+ ->update("graphics_rules")
+ ->set("active", false)
+ ->where("module_name", "=", $module_name)
+ ->execute();
}
/**