summaryrefslogtreecommitdiff
path: root/core/helpers/core_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-29 20:20:10 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-29 20:20:10 +0000
commit2bfddc4c87443640098387630967f6d141a9fce6 (patch)
treedc7866ad9dad90a3be777df3771bc1c365978ed3 /core/helpers/core_installer.php
parent8102d8ea7727b259d665ef849c26c0a29019676f (diff)
Make graphics rules take named parameters. This will give us some
flexibility in the future.
Diffstat (limited to 'core/helpers/core_installer.php')
-rw-r--r--core/helpers/core_installer.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index c83d9bcb..a1e06696 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -176,8 +176,14 @@ class core_installer {
module::set_var("core", "resize_size", 640);
// Add rules for generating our thumbnails and resizes
- graphics::add_rule("core", "thumb", "resize", array(200, 200, Image::AUTO), 100);
- graphics::add_rule("core", "resize", "resize", array(640, 640, Image::AUTO), 100);
+ graphics::add_rule(
+ "core", "thumb", "resize",
+ array("width" => 200, "height" => 200, "master" => Image::AUTO),
+ 100);
+ graphics::add_rule(
+ "core", "resize", "resize",
+ array("width" => 200, "height" => 200, "master" => Image::AUTO),
+ 100);
module::set_version("core", 1);
}