Commit f79b458b authored by stBorchert's avatar stBorchert Committed by frjo

Issue #1851590 by stBorchert | astra: Fatal error for updating to Colorbox 2.0.

parent eedf4a93
......@@ -219,7 +219,9 @@ function _colorbox_doheader() {
// Add and initialise the Colorbox plugin.
$variant = variable_get('colorbox_compression_type', 'minified');
libraries_load('colorbox', $variant);
if (module_exists('libraries')) {
libraries_load('colorbox', $variant);
drupal_add_js($path . '/js/colorbox.js');
// Add JS and CSS based on selected style.
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