summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-27 17:55:48 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-27 17:55:48 -0700
commitc97a88599eb7b199294edbfae382353456061bef (patch)
tree9f63c5af0532fb5d9ff8d4b870a14af401ac8bc7 /modules/gallery/helpers
parent467b74c3106558d1656301b9c73236417d4421ac (diff)
Change gallery installer to do a direct update to the database, preppending gallery_graphics:: to each of the defined rules operations
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/gallery_installer.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index f995b606..49bd9bb7 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -377,16 +377,8 @@ class gallery_installer {
if ($version == 13) {
// Add rules for generating our thumbnails and resizes
- graphics::remove_rule("gallery", "thumb", "gallery_graphics::resize");
- graphics::remove_rule("gallery", "resize", "gallery_graphics::resize");
- graphics::add_rule(
- "gallery", "thumb", "gallery_graphics::resize",
- array("width" => 200, "height" => 200, "master" => Image::AUTO),
- 100);
- graphics::add_rule(
- "gallery", "resize", "gallery_graphics::resize",
- array("width" => 640, "height" => 480, "master" => Image::AUTO),
- 100);
+ Database::instance()->query("update g3_graphics_rules g
+ set operation=concat(\"gallery_graphics::\", g.operation);");
module::set_version("gallery", $version = 14);
}