Skip to content
Snippets Groups Projects
Commit cd193026 authored by Hai-Nam Nguyen's avatar Hai-Nam Nguyen
Browse files

Bug #1714742 by tito.brasolin, jcisio: 'The selected image handling toolkit...

Bug #1714742 by tito.brasolin, jcisio: 'The selected image handling toolkit imageapi_optimize can not correctly process'
parent 85e495de
No related branches found
No related tags found
No related merge requests found
......@@ -300,6 +300,10 @@ function _imageapi_optimize_exec($cmd, $dst) {
* This function takes a dozens of miliseconds CPU times.
*/
function _imageapi_optimize_get_methods() {
// The list of toolkits might not loaded yet. We call this function to get
// toolkits in separate .inc files eventually included.
image_get_available_toolkits();
$funcs = get_defined_functions();
$methods = array();
$prefix = 'image_' . variable_get('imageapi_optimize_toolkit', '') .'_';
......@@ -316,3 +320,4 @@ function _imageapi_optimize_get_methods() {
watchdog('imageapi', 'Refresh ImageAPI methods');
return $methods;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment