#547068 follow-up by David_Rothstein: Don't use Seven for maintenance page.
parent
ce2fe66cc9
commit
ffb7dcaf33
|
@ -11,8 +11,8 @@
|
|||
* in maintenance mode. It also applies when the database is unavailable.
|
||||
*
|
||||
* Seven is always used for the initial install and update operations. In
|
||||
* other cases, "settings.php" must have a "maintenance_theme" key set for the
|
||||
* $conf variable in order to change the maintenance theme.
|
||||
* other cases, Minnelli is used, but this can be overridden by setting a
|
||||
* "maintenance_theme" key in the $conf variable in settings.php.
|
||||
*/
|
||||
function _drupal_maintenance_theme() {
|
||||
global $theme, $theme_key;
|
||||
|
@ -46,7 +46,7 @@ function _drupal_maintenance_theme() {
|
|||
drupal_load('module', 'filter');
|
||||
}
|
||||
|
||||
$custom_theme = variable_get('maintenance_theme', 'seven');
|
||||
$custom_theme = variable_get('maintenance_theme', 'minnelli');
|
||||
}
|
||||
|
||||
$themes = list_themes();
|
||||
|
|
|
@ -60,7 +60,7 @@ class MenuIncTestCase extends DrupalWebTestCase {
|
|||
// For a regular user, the fact that the site is in maintenance mode means
|
||||
// we expect the theme callback system to be bypassed entirely.
|
||||
$this->drupalGet('menu-test/theme-callback/use-admin-theme');
|
||||
$this->assertRaw('seven/style.css', t("The maintenance theme's CSS appears on the page."));
|
||||
$this->assertRaw('minnelli/minnelli.css', t("The maintenance theme's CSS appears on the page."));
|
||||
|
||||
// An administrator, however, should continue to see the requested theme.
|
||||
$admin_user = $this->drupalCreateUser(array('access site in maintenance mode'));
|
||||
|
|
Loading…
Reference in New Issue