From ecf7d46a67f21757d9e0e67cb04ab0b0490781ac Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 26 Dec 2008 05:44:02 +0000 Subject: Add the graphics rules for both thumbs and resizes (instead of just thumbs). --- modules/watermark/controllers/admin_watermarks.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/watermark/controllers/admin_watermarks.php b/modules/watermark/controllers/admin_watermarks.php index 9f87fed4..9c95d213 100644 --- a/modules/watermark/controllers/admin_watermarks.php +++ b/modules/watermark/controllers/admin_watermarks.php @@ -130,11 +130,13 @@ class Admin_Watermarks_Controller extends Admin_Controller { private function _update_graphics_rules($name=null, $position=null) { graphics::remove_rules("watermark"); if ($name) { - graphics::add_rule( - "watermark", "thumb", "compose", - array("overlay" => VARPATH . "modules/watermark/$name", - "position" => $position), - 1000); + foreach (array("thumb", "resize") as $target) { + graphics::add_rule( + "watermark", $target, "compose", + array("overlay" => VARPATH . "modules/watermark/$name", + "position" => $position), + 1000); + } } } } \ No newline at end of file -- cgit v1.2.3