summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorcolings <colings@example.com>2011-01-02 09:48:23 -0600
committercolings <colings@example.com>2011-01-02 09:48:23 -0600
commitc2a1ea64eda2bf3e22ecaf4df4714c091bc5d7c4 (patch)
tree674015673868b4f39c706dcf9eb6424d281d8396 /modules/gallery/helpers
parente760200eeec2f003f95072118a6cc52971c76dad (diff)
Tweak to include parent_id in resize call, for custom albums.
Diffstat (limited to 'modules/gallery/helpers')
-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 edba6b76..bfea2f2c 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;
}