From 8f5c296cc08ee58206d204f61fe13abbbe050baf Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 8 Jul 2010 03:41:27 +0000 Subject: #845742 by Damien Tournoud: Make Bartik the default core theme. --- includes/theme.inc | 4 ++-- includes/theme.maintenance.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 67406a8d9..fef9221c1 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -81,7 +81,7 @@ function drupal_theme_initialize() { // Only select the user selected theme if it is available in the // list of themes that can be accessed. - $theme = !empty($user->theme) && drupal_theme_access($user->theme) ? $user->theme : variable_get('theme_default', 'garland'); + $theme = !empty($user->theme) && drupal_theme_access($user->theme) ? $user->theme : variable_get('theme_default', 'bartik'); // Allow modules to override the theme. Validation has already been performed // inside menu_get_custom_theme(), so we do not need to check it again here. @@ -1260,7 +1260,7 @@ function theme_enable($theme_list) { */ function theme_disable($theme_list) { // Don't disable the default theme. - if ($pos = array_search(variable_get('theme_default', 'garland'), $theme_list) !== FALSE) { + if ($pos = array_search(variable_get('theme_default', 'bartik'), $theme_list) !== FALSE) { unset($theme_list[$pos]); if (empty($theme_list)) { return; diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 5d1a9b9c7..6049141f0 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -46,7 +46,7 @@ function _drupal_maintenance_theme() { // We use the default theme as the maintenance theme. If a default theme // isn't specified in the database or in settings.php, we use Garland. - $custom_theme = variable_get('maintenance_theme', variable_get('theme_default', 'garland')); + $custom_theme = variable_get('maintenance_theme', variable_get('theme_default', 'bartik')); } // Ensure that system.module is loaded. -- cgit v1.2.3