fix for new install

This commit is contained in:
botanic 2013-12-14 19:34:07 -08:00
parent be87039624
commit fe3a7c0e1c

View file

@ -23,7 +23,7 @@
error_reporting( E_ALL ); error_reporting( E_ALL );
if (file_exists('../config.php')) { if (file_exists('../config.php')) {
require( '../config.php' ); require_once( '../config.php' );
} else { } else {
//copy config.default.php to config.php! //copy config.default.php to config.php!
if (!file_exists('../config.php')) { if (!file_exists('../config.php')) {
@ -31,6 +31,8 @@
echo "failed to copy ../config.php ...\n"; echo "failed to copy ../config.php ...\n";
echo '<br><a href="'.$_SERVER['REQUEST_URI'].'" >Reload!</a> '; echo '<br><a href="'.$_SERVER['REQUEST_URI'].'" >Reload!</a> ';
exit; exit;
} else {
require_once( '../config.php' );
} }
} }
} }