Skip to content
Snippets Groups Projects
Commit 24fd7290 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #850682 by bleen18: why is the maintenance page stylesheet loaded on all regular pages?

parent 486157dc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -11,7 +11,6 @@ stylesheets[all][] = css/layout.css ...@@ -11,7 +11,6 @@ stylesheets[all][] = css/layout.css
stylesheets[all][] = css/style.css stylesheets[all][] = css/style.css
stylesheets[all][] = css/colors.css stylesheets[all][] = css/colors.css
stylesheets[print][] = css/print.css stylesheets[print][] = css/print.css
stylesheets[all][] = css/maintenance-page.css
scripts[] = scripts/search.js scripts[] = scripts/search.js
......
...@@ -74,6 +74,13 @@ function bartik_process_page(&$variables) { ...@@ -74,6 +74,13 @@ function bartik_process_page(&$variables) {
} }
} }
/**
* Implements hook_preprocess_maintenance_page().
*/
function bartik_preprocess_maintenance_page(&$variables) {
drupal_add_css(drupal_get_path('theme', 'bartik') . '/css/maintenance-page.css');
}
/** /**
* Override or insert variables into the maintenance page template. * Override or insert variables into the maintenance page template.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment