From 2bfddc4c87443640098387630967f6d141a9fce6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 29 Dec 2008 20:20:10 +0000 Subject: Make graphics rules take named parameters. This will give us some flexibility in the future. --- core/helpers/core_installer.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'core/helpers/core_installer.php') 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); } -- cgit v1.2.3