includes/common.php
changeset 371 dc6026376919
parent 354 979d99a0b00e
child 372 5bd429428101
--- a/includes/common.php	Tue Jan 22 01:08:15 2008 -0500
+++ b/includes/common.php	Wed Jan 23 12:48:22 2008 -0500
@@ -154,7 +154,8 @@
 // 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.
 
-@include(ENANO_ROOT . '/config.php');
+$config_file = ( defined('IN_ENANO_INSTALL') ) ? '/config.new.php' : '/config.php';
+@include(ENANO_ROOT . $config_file);
 unset($dbuser, $dbpasswd);
 if ( !isset($dbdriver) )
   $dbdriver = 'mysql';