Commit 7a995984 authored by markus_petrux's avatar markus_petrux Committed by 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 c4cf2d64
......@@ -284,6 +284,16 @@ function _imageapi_optimize_get_methods() {
$methods = array();
$prefix = variable_get('imageapi_optimize_toolkit', '') .'_image_';
// Load ImageAPI methods that can be located in external files
// managed by the ImageCache module.
if (module_exists('imagecache')) {
foreach (imagecache_action_definitions() as $definition) {
if (isset($definition['file'])) {
require_once('./' . $definition['file']);
}
}
}
foreach ($funcs['user'] as $func) {
if (strpos($func, $prefix) === 0) {
$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