Skip to content

Commit

Permalink
Site now dumps into installer if config.php isn't found
Browse files Browse the repository at this point in the history
[#194 state:resolved]
  • Loading branch information
dleffler committed May 27, 2011
1 parent d8cc6cc commit d732adc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions index.php
Expand Up @@ -68,6 +68,11 @@ function epb($buffer, $mode) {
exit('Redirecting to the Exponent Install Wizard');
}

if (!(file_exists(BASE.'conf/config.php'))) {
header('Location: '.URL_FULL.'install/index.php');
exit('Redirecting to the Exponent Install Wizard');
}

// Handle sub themes
$page = exponent_theme_getTheme();

Expand Down
3 changes: 1 addition & 2 deletions install/index.php
Expand Up @@ -22,12 +22,11 @@

//define('DEVELOPMENT',1);

if (!file_exists('not_configured')) {
if (!file_exists('not_configured') && file_exists(BASE.'conf/config.php')) {
header('Location: ../index.php');
exit('This Exponent Site has already been configured.');
}


define('SCRIPT_EXP_RELATIVE','install/');
define('SCRIPT_FILENAME','index.php');
include_once('../exponent.php');
Expand Down

0 comments on commit d732adc

Please sign in to comment.