summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/watermark/controllers/admin_watermarks.php12
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