summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-21 08:47:15 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-21 08:47:15 +0000
commit3bef13458a97c7216df3d46b978240b8df9d7e94 (patch)
tree4f723ee3bba09da06ea8216f276da71a2be7ad90 /database
parent9d162755c777249ea73c990804b74a1dfecff2ea (diff)
downloadbrdo-3bef13458a97c7216df3d46b978240b8df9d7e94.tar.gz
brdo-3bef13458a97c7216df3d46b978240b8df9d7e94.tar.bz2
- Patch #42935 by thierry_gd: fixed problem with upgrading the theme. (Today's critical bugfix #3.)
Diffstat (limited to 'database')
-rw-r--r--database/updates.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc
index c7192509e..095176103 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -667,6 +667,13 @@ function system_update_144() {
function system_update_145() {
$default_theme = variable_get('theme_default', 'bluemarine');
+
+ $themes = list_themes();
+ if (!array_key_exists($default_theme, $themes)) {
+ variable_set('theme_default', 'bluemarine');
+ $default_theme = 'bluemarine';
+ }
+
$ret = array();
switch ($GLOBALS['db_type']) {