summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/graphics.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/helpers/graphics.php')
-rw-r--r--modules/gallery/helpers/graphics.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index 72c563b7..834211bf 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -169,7 +169,9 @@ class graphics_Core {
}
foreach (self::_get_rules($target) as $rule) {
- $args = array($working_file, $output_file, unserialize($rule->args));
+ $options = unserialize($rule->args);
+ $options["parent_id"] = $item->parent_id;
+ $args = array($working_file, $output_file, $options);
call_user_func_array($rule->operation, $args);
$working_file = $output_file;
}