summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-29 00:04:18 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-29 00:04:18 -0800
commit94677b85b695807b6809c5504af6737ca92903dd (patch)
tree90bf07dbb53ee1e824b0e825ee38c416819db0fa /themes
parent42018444222b8d5324bca337f8808ba0db00fbd2 (diff)
downloadbrdo-94677b85b695807b6809c5504af6737ca92903dd.tar.gz
brdo-94677b85b695807b6809c5504af6737ca92903dd.tar.bz2
Issue #1334344 by jessebeach, mikestefff, Devin Carlson: Fixed During update, Bartik throws an error that () is not defined.
Diffstat (limited to 'themes')
-rw-r--r--themes/bartik/template.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/bartik/template.php b/themes/bartik/template.php
index d523a0aba..bdad570d1 100644
--- a/themes/bartik/template.php
+++ b/themes/bartik/template.php
@@ -77,8 +77,12 @@ function bartik_process_page(&$variables) {
* Implements hook_preprocess_maintenance_page().
*/
function bartik_preprocess_maintenance_page(&$variables) {
+ // By default, site_name is set to Drupal if no db connection is available
+ // or during site installation. Setting site_name to an empty string makes
+ // the site and update pages look cleaner.
+ // @see template_preprocess_maintenance_page
if (!$variables['db_is_active']) {
- unset($variables['site_name']);
+ $variables['site_name'] = '';
}
drupal_add_css(drupal_get_path('theme', 'bartik') . '/css/maintenance-page.css');
}