diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-26 05:44:02 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-26 05:44:02 +0000 |
commit | ecf7d46a67f21757d9e0e67cb04ab0b0490781ac (patch) | |
tree | 46086a43f8ee1f18c2d97551e206a2762a5e9549 | |
parent | dee20ed6a2bd92a2e67c27ccc7d60303d66cdcde (diff) |
Add the graphics rules for both thumbs and resizes (instead of just thumbs).
-rw-r--r-- | modules/watermark/controllers/admin_watermarks.php | 12 |
1 files changed, 7 insertions, 5 deletions
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 |