includes/common.php
changeset 1186 774ae986fded
parent 1109 c424a15a1656
child 1195 449fdd113eb0
--- a/includes/common.php	Fri Dec 18 21:49:48 2009 -0500
+++ b/includes/common.php	Fri Dec 18 22:00:02 2009 -0500
@@ -208,7 +208,7 @@
 // even be installed. If this connection attempt fails and it's because of a missing or corrupt config file, the
 // user will be redirected (intelligently) to install.php.
 
-$config_file = ( defined('IN_ENANO_INSTALL') ) ? '/config.new.php' : '/config.php';
+$config_file = ( defined('IN_ENANO_INSTALL') && !defined('IN_ENANO_UPGRADE') ) ? '/config.new.php' : '/config.php';
 @include(ENANO_ROOT . $config_file);
 unset($dbuser, $dbpasswd);
 if ( !isset($dbdriver) )