? .imagecache.install.swp ? call_user_func_reference.patch ? check_array_0.patch ? imagecache_ui_grammar.patch Index: imagecache.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.module,v retrieving revision 1.93 diff -u -p -r1.93 imagecache.module --- imagecache.module 21 Dec 2008 23:46:33 -0000 1.93 +++ imagecache.module 22 Dec 2008 00:09:47 -0000 @@ -396,11 +396,22 @@ function _imagecache_cache($presetname, exit; } -function _imagecache_apply_action($action, &$image) { +/** + * Apply an action to an image. + * + * @param $action + * Action array + * @param $image + * Image object + * @return + * Boolean, true indicating success and false failure. + */ +function _imagecache_apply_action($action, $image) { $actions = imagecache_action_definitions(); if ($definition = imagecache_action_definition($action['action'])) { - return call_user_func($action['action'] .'_image', $image, $action['data']); + $function = $action['action'] .'_image'; + return $function($image, $action['data']); } // skip undefined actions.. module probably got uninstalled or disabled. watchdog('imagecache', 'non-existant action %action', array('%action' => $action['action']), WATCHDOG_NOTICE); @@ -521,7 +532,7 @@ function imagecache_user($op, &$edit, &$ imagecache_image_flush($account->picture); } } - + /** * Implementation of hook_imagefield_file(). */