summaryrefslogtreecommitdiff
path: root/includes/install.core.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-14 21:42:05 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-14 21:42:05 +0000
commit679372502bac82b614814312e557979b0151014a (patch)
treec5cf83ab0bd9863d3d9177e86540000c601bbd27 /includes/install.core.inc
parentfc53a19440075d7b0d55277c46b19643c136ca19 (diff)
downloadbrdo-679372502bac82b614814312e557979b0151014a.tar.gz
brdo-679372502bac82b614814312e557979b0151014a.tar.bz2
- Patch #910572 by sun, David_Rothstein: command line installations are broken (programmatic form submissions don't need a theme?).
Diffstat (limited to 'includes/install.core.inc')
-rw-r--r--includes/install.core.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/install.core.inc b/includes/install.core.inc
index a334f7bb3..906a48e43 100644
--- a/includes/install.core.inc
+++ b/includes/install.core.inc
@@ -275,12 +275,12 @@ function install_begin_request(&$install_state) {
require_once DRUPAL_ROOT . '/includes/cache-install.inc';
$conf['cache_default_class'] = 'DrupalFakeCache';
- // Prepare for themed output, if necessary. We need to run this at the
- // beginning of the page request to avoid a different theme accidentally
- // getting set.
- if ($install_state['interactive']) {
- drupal_maintenance_theme();
- }
+ // Prepare for themed output. We need to run this at the beginning of the
+ // page request to avoid a different theme accidentally getting set. (We also
+ // need to run it even in the case of command-line installations, to prevent
+ // any code in the installer that happens to initialize the theme system from
+ // accessing the database before it is set up yet.)
+ drupal_maintenance_theme();
// Check existing settings.php.
$install_state['settings_verified'] = install_verify_settings();