Commit a98c29d2 authored by Neslee Canil Pinto's avatar Neslee Canil Pinto Committed by Neslee Canil Pinto

Issue #2494529 by Ishani.addweb, Neslee Canil Pinto: Call to undefined function libraries_load()

parent e81894fe
......@@ -222,7 +222,7 @@ function _colorbox_doheader() {
// Add and initialise the Colorbox plugin.
$variant = variable_get('colorbox_compression_type', 'minified');
if (module_exists('libraries')) {
if (module_exists('libraries') && function_exists(libraries_load)) {
libraries_load('colorbox', $variant);
}
drupal_add_js($path . '/js/colorbox.js');
......
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