Commit d159bc3c authored by frjo's avatar frjo
Browse files

Issue #2710851: PHP warning "the following theme is missing from the file...

Issue #2710851: PHP warning "the following theme is missing from the file system: colorbox" on install via drush.
parent e107dfcd
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
* Implements hook_requirements(). * Implements hook_requirements().
*/ */
function colorbox_requirements($phase) { function colorbox_requirements($phase) {
if ($phase != 'runtime') {
return array();
}
$library = \Drupal::service('library.discovery')->getLibraryByName('colorbox', 'colorbox'); $library = \Drupal::service('library.discovery')->getLibraryByName('colorbox', 'colorbox');
$library_exists = file_exists(DRUPAL_ROOT . '/' . $library['js'][0]['data']); $library_exists = file_exists(DRUPAL_ROOT . '/' . $library['js'][0]['data']);
......
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