Commit 22926098 authored by Dries's avatar Dries
Browse files

- Patch #641750 by JohnAlbin: fixed image scaling on story's image fields.

parent ff0bdd3d
......@@ -998,8 +998,9 @@ function image_effect_delete($effect) {
*/
function image_effect_apply($image, $effect) {
module_load_include('inc', 'image', 'image.effects');
if (function_exists($effect['effect callback'])) {
return call_user_func($effect['effect callback'], $image, $effect['data']);
$function = $effect['effect callback'];
if (function_exists($function)) {
return $function($image, $effect['data']);
}
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment