summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/graphics.php
diff options
context:
space:
mode:
authorcolings <colings@example.com>2011-02-21 15:40:58 -0600
committercolings <colings@example.com>2011-02-21 15:40:58 -0600
commit68edb2454dcd2044a82d8e8f8a1b96330e6d3b8c (patch)
treec84ce5f072c72b995696dbd0ee8563ca6ac36a3c /modules/gallery/helpers/graphics.php
parentd759d47ef99ebde158620f43ab46a83f445d9e53 (diff)
Added 'item' to parameters passed to graphics rules
Diffstat (limited to 'modules/gallery/helpers/graphics.php')
-rw-r--r--modules/gallery/helpers/graphics.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index 834211bf..04501132 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -169,9 +169,7 @@ class graphics_Core {
}
foreach (self::_get_rules($target) as $rule) {
- $options = unserialize($rule->args);
- $options["parent_id"] = $item->parent_id;
- $args = array($working_file, $output_file, $options);
+ $args = array($working_file, $output_file, unserialize($rule->args), $item);
call_user_func_array($rule->operation, $args);
$working_file = $output_file;
}