Skip to content
Snippets Groups Projects
Commit 1e9a538b authored by Hai-Nam Nguyen's avatar Hai-Nam Nguyen
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
Branches 6.x-1.x
Tags 6.x-1.5
No related merge requests found
......@@ -280,7 +280,6 @@ function _imageapi_optimize_exec($cmd, $dst) {
* This function takes a dozens of miliseconds CPU times.
*/
function _imageapi_optimize_get_methods() {
$funcs = get_defined_functions();
$methods = array();
$prefix = variable_get('imageapi_optimize_toolkit', '') .'_image_';
......@@ -294,6 +293,7 @@ function _imageapi_optimize_get_methods() {
}
}
$funcs = get_defined_functions();
foreach ($funcs['user'] as $func) {
if (strpos($func, $prefix) === 0) {
$method = substr($func, strlen($prefix));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment