From 35737a87b07c6c49d1194daf1725aa34b04f2a40 Mon Sep 17 00:00:00 2001 From: Alexander Granholm Date: Fri, 8 Jul 2016 13:46:18 +0300 Subject: [PATCH] Issue #2762793: Modules are listed as missing themes in Drupal 7.50, triggers user warnings --- omega/includes/assets.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omega/includes/assets.inc b/omega/includes/assets.inc index f17c599..a18bc4e 100644 --- a/omega/includes/assets.inc +++ b/omega/includes/assets.inc @@ -55,7 +55,7 @@ function omega_assets_prepare_regex(array $paths) { foreach (array('theme', 'module', 'profile', 'theme_engine') as $type) { // We can't use drupal_get_path() directly because that uses dirname() // internally which returns '.' if no filename was found. - if ($filename = drupal_get_filename($type, $namespace)) { + if ($filename = drupal_get_filename($type, $namespace, NULL, FALSE)) { $directory = preg_quote(dirname($filename), '/'); // Now that we know about this namespace we can add it to the tokens // array for performance reasons. -- 2.9.0