Commit 1e9a538b authored by jcisio's avatar jcisio
Browse files

Issue #976096: Fixed The selected image handling toolkit imageapi_optimize()...

Issue #976096: Fixed The selected image handling toolkit imageapi_optimize() can not correctly process imageapi_optimize_image_overlay().
parent 7a995984
...@@ -280,7 +280,6 @@ function _imageapi_optimize_exec($cmd, $dst) { ...@@ -280,7 +280,6 @@ function _imageapi_optimize_exec($cmd, $dst) {
* This function takes a dozens of miliseconds CPU times. * This function takes a dozens of miliseconds CPU times.
*/ */
function _imageapi_optimize_get_methods() { function _imageapi_optimize_get_methods() {
$funcs = get_defined_functions();
$methods = array(); $methods = array();
$prefix = variable_get('imageapi_optimize_toolkit', '') .'_image_'; $prefix = variable_get('imageapi_optimize_toolkit', '') .'_image_';
...@@ -294,6 +293,7 @@ function _imageapi_optimize_get_methods() { ...@@ -294,6 +293,7 @@ function _imageapi_optimize_get_methods() {
} }
} }
$funcs = get_defined_functions();
foreach ($funcs['user'] as $func) { foreach ($funcs['user'] as $func) {
if (strpos($func, $prefix) === 0) { if (strpos($func, $prefix) === 0) {
$method = substr($func, strlen($prefix)); $method = substr($func, strlen($prefix));
......
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