Commit 0d2e543d authored by Hai-Nam Nguyen's avatar Hai-Nam Nguyen
Browse files

Bug #829556 by nicholasThompson: PHP 5.3 compatibility

parent d9057e5f
......@@ -131,7 +131,7 @@ function imageapi_optimize_image_overlay(&$image, &$layer, $x, $y, $alpha, $reve
function _imageapi_optimize_invoke($method, &$image, array $params = array()) {
$function = variable_get('imageapi_optimize_toolkit', '') .'_image_'. $method;
if (function_exists($function)) {
array_unshift($params, $image);
array_unshift($params, &$image);
return call_user_func_array($function, $params);
Supports Markdown
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