Commit 862b4d63 authored by alexpott's avatar alexpott
Browse files

Issue #2008270 by mcjim, typhonius: Remove drupal_add_css() from...

Issue #2008270 by mcjim, typhonius: Remove drupal_add_css() from _drupal_maintenance_theme() — use #attached.
parent ce46bf1e
......@@ -2961,6 +2961,21 @@ function template_preprocess_maintenance_page(&$variables) {
$head_title['slogan'] = strip_tags(filter_xss_admin($site_slogan));
}
}
$path = drupal_get_path('module', 'system');
// These are usually added from system_page_build() except maintenance.css.
// When the database is inactive it's not called so we add it here.
$default_css = array(
'#attached' => array(
'css' => array(
$path . '/css/system.module.css',
$path . '/css/system.theme.css',
$path . '/css/system.admin.css',
$path . '/css/system.maintenance.css',
),
),
);
drupal_render($default_css);
$variables['head_title_array'] = $head_title;
$variables['head_title'] = implode(' | ', $head_title);
......
......@@ -96,11 +96,6 @@ function _drupal_maintenance_theme() {
// system.maintenance.css. When the database is inactive, it's not called so
// we add them here.
drupal_add_library('system', 'drupal.base');
$path = drupal_get_path('module', 'system');
drupal_add_css($path . '/css/system.module.css');
drupal_add_css($path . '/css/system.theme.css');
drupal_add_css($path . '/css/system.admin.css');
drupal_add_css($path . '/css/system.maintenance.css');
}
/**
......
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