Commit a66e9586 authored by catch's avatar catch

Issue #2073621 by Cyberschorsch, m1n0: Remove unneeded variables from...

Issue #2073621 by Cyberschorsch, m1n0: Remove unneeded variables from template_preprocess_maintenance_page().
parent 2c51074d
......@@ -2120,9 +2120,6 @@ function template_preprocess_html(&$variables) {
* Uses the arg() function to generate a series of page template suggestions
* based on the current path.
*
* Any changes to variables in this preprocessor should also be changed inside
* template_preprocess_maintenance_page() to keep all of them consistent.
*
* @see drupal_render_page()
*/
function template_preprocess_page(&$variables) {
......@@ -2377,19 +2374,12 @@ function template_preprocess_maintenance_page(&$variables) {
$variables['head_title_array'] = $head_title;
$variables['head_title'] = implode(' | ', $head_title);
$variables['base_path'] = base_path();
$variables['front_page'] = url();
$variables['breadcrumb'] = '';
$variables['feed_icons'] = '';
$variables['help'] = '';
$variables['language'] = $language_interface;
$variables['language']->dir = $language_interface->direction ? 'rtl' : 'ltr';
$variables['logo'] = theme_get_setting('logo.url');
$variables['main_menu'] = array();
$variables['secondary_menu'] = array();
$variables['site_name'] = (theme_get_setting('features.name') ? String::checkPlain($site_name) : '');
$variables['site_slogan'] = (theme_get_setting('features.slogan') ? filter_xss_admin($site_slogan) : '');
$variables['tabs'] = '';
// Compile a list of classes that are going to be applied to the body element.
$variables['attributes']['class'][] = 'maintenance-page';
......
......@@ -3,8 +3,7 @@
* @file
* Default theme implementation to display a single Drupal page while offline.
*
* All the available variables are mirrored in html.html.twig and
* page.html.twig.
* All of the available variables are mirrored in html.html.twig.
* Some may be blank but they are provided for consistency.
*
* @see template_preprocess_maintenance_page()
......
......@@ -3,7 +3,7 @@
* @file
* Bartik's theme implementation to display a single Drupal page while offline.
*
* All of the available variables are mirrored in page.html.twig.
* All of the available variables are mirrored in html.html.twig.
*
* @see template_preprocess_maintenance_page()
*
......
......@@ -3,7 +3,7 @@
* @file
* Seven's theme implementation to display a single Drupal page while offline.
*
* All of the available variables are mirrored in page.html.twig.
* All of the available variables are mirrored in html.html.twig.
*
* @see template_preprocess_maintenance_page()
* @see seven_preprocess_maintenance_page()
......
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