diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php index dda1c01..d00126f 100644 --- a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php +++ b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php @@ -740,23 +740,16 @@ public static function getAdminCSS() { $themes = list_themes(); $theme_key = $GLOBALS['theme']; while ($theme_key) { - // Try to find the admin css file for non-core themes. - if (!in_array($theme_key, array('seven', 'bartik'))) { - $theme_path = drupal_get_path('theme', $theme_key); - // First search in the css directory, then in the root folder of the theme. - if (file_exists($theme_path . "/css/views-admin.$theme_key.css")) { - $list[$theme_path . "/css/views-admin.$theme_key.css"] = array( - 'group' => CSS_THEME, - ); - } - elseif (file_exists($theme_path . "/views-admin.$theme_key.css")) { - $list[$theme_path . "/views-admin.$theme_key.css"] = array( - 'group' => CSS_THEME, - ); - } + // Try to find the admin css file. + $theme_path = drupal_get_path('theme', $theme_key); + // First search in the css directory, then in the root folder of the theme. + if (file_exists($theme_path . "/css/views-admin.$theme_key.css")) { + $list[$theme_path . "/css/views-admin.$theme_key.css"] = array( + 'group' => CSS_THEME, + ); } - else { - $list[$module_path . "/css/views-admin.$theme_key.css"] = array( + elseif (file_exists($theme_path . "/views-admin.$theme_key.css")) { + $list[$theme_path . "/views-admin.$theme_key.css"] = array( 'group' => CSS_THEME, ); }