Commit 4dc270d0 authored by frjo's avatar frjo
Browse files

Issue #1195286 by cristian.stoica: Colorbox module set messages if Colorbox...

Issue #1195286 by cristian.stoica: Colorbox module set messages if Colorbox plugin is not installed and that breaks the drusg colorbox-plugin command. This is a quickfix for that bug.
parent 1f50c0e2
......@@ -297,10 +297,10 @@ function colorbox_get_js() {
$colorbox_js = $colorbox_js_map[variable_get('colorbox_compression_type', 'min')];
return $library_path . '/colorbox/' . $colorbox_js;
}
else {
drupal_set_message(t('You need to download the !colorbox and extract the entire contents of the archive into the %path folder of your server.', array('!colorbox' => l(t('Colorbox plugin'), 'http://colorpowered.com/colorbox/'), '%path' => $library_path)), 'error', FALSE);
return FALSE;
}
// else {
// drupal_set_message(t('You need to download the !colorbox and extract the entire contents of the archive into the %path folder of your server.', array('!colorbox' => l(t('Colorbox plugin'), 'http://colorpowered.com/colorbox/'), '%path' => $library_path)), 'error', FALSE);
// return FALSE;
// }
}
/**
......
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