Skip to content

Commit

Permalink
Added header redirect to the setup path if index ran before setup is …
Browse files Browse the repository at this point in the history
…complete

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@767 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
pgogy committed Apr 15, 2013
1 parent c0735f1 commit c3cff4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config.php
Expand Up @@ -23,7 +23,7 @@
// and logging (to /tmp/debug.log) are turned on; either of these may help you
// diagnose installation and integration issues.
global $development;
$development = false;
$development = true;

ini_set('error_reporting', 0);
if ($development) {
Expand All @@ -50,7 +50,9 @@
* Access the database to get the variables
*/
if (!is_file(dirname(__FILE__) . '/database.php')) {
die("please run /setup");

header("Location: " . $_SERVER['REQUEST_URI'] . "setup/");

}

require_once(dirname(__FILE__) . '/database.php');
Expand Down

0 comments on commit c3cff4d

Please sign in to comment.