includes/sessions.php
changeset 268 58477ab3937f
parent 263 d57af0b0302e
child 270 5bcdee999015
--- a/includes/sessions.php	Sat Nov 17 22:56:26 2007 -0500
+++ b/includes/sessions.php	Sat Nov 17 23:09:12 2007 -0500
@@ -260,7 +260,16 @@
   function __construct()
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
-    include(ENANO_ROOT.'/config.php');
+    
+    if ( defined('IN_ENANO_INSTALL') )
+    {
+      @include(ENANO_ROOT.'/config.new.php');
+    }
+    else
+    {
+      @include(ENANO_ROOT.'/config.php');
+    }
+    
     unset($dbhost, $dbname, $dbuser, $dbpasswd);
     if(isset($crypto_key))
     {