Commit 2814a0f3 authored by git's avatar git Committed by gisle
Browse files

Issue #1803488 by undrgrnd: Ficed popup not removing theme CSS

parent e2dec8df
name = Advanced help
description = Allow advanced help and documentation.
description = Provide extended help and documentation.
core = 7.x
......@@ -1076,11 +1076,12 @@ function template_preprocess_advanced_help_popup(&$variables) {
$css = drupal_add_css();
// Remove theme css.
foreach ($css as $media => $types) {
if (isset($css[$media]['theme'])) {
$css[$media]['theme'] = array();
foreach ($css as $key => $value) {
if ($value['group'] == CSS_THEME) {
$exclude[$key] = FALSE;
}
}
$css = array_diff_key($css, $exclude);
$variables['styles'] = drupal_get_css($css);
$variables['scripts'] = drupal_get_js();
......
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