From c0ccb3917cd6c30f9f341cd8be2657f0b13f33c9 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 20 Feb 2006 12:30:07 +0000 Subject: [PATCH] Upgrade properly without the config/environment.php file existing. --- lib/upgrades/UpgradeFunctions.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/upgrades/UpgradeFunctions.inc.php b/lib/upgrades/UpgradeFunctions.inc.php index 681b415..4dfaef9 100644 --- a/lib/upgrades/UpgradeFunctions.inc.php +++ b/lib/upgrades/UpgradeFunctions.inc.php @@ -438,12 +438,12 @@ class UpgradeFunctions { // {{{ createLdapAuthenticationProvider function createLdapAuthenticationProvider() { - global $default; - $new_default = $default; - $default = null; if (!file_exists(KT_DIR . '/config/environment.php')) { return; } + global $default; + $new_default = $default; + $default = null; require_once(KT_DIR . '/config/environment.php'); $old_default = $default; $default = $new_default; -- libgit2 0.21.4