Skip to content

Commit

Permalink
インストールが始まらない問題を修正。
Browse files Browse the repository at this point in the history
リダイレクトを指定後に後続の処理を行わないようにした。
  • Loading branch information
soushi committed Jan 4, 2016
1 parent 0f81b29 commit fdee721
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions manager/includes/document.parser.class.inc.php
Expand Up @@ -9,12 +9,13 @@
$conf_path = MODX_CORE_PATH . 'config.inc.php';
if (is_file($conf_path)) include_once($conf_path);

if ((!isset($lastInstallTime) || empty($lastInstallTime))) {
if(strpos($_SERVER['SCRIPT_NAME'],'install/index.php')===false) {
if(is_file(MODX_BASE_PATH . 'install/index.php'))
header('Location: install/index.php?action=mode');
else exit('Not installed.');
}
if (!isset($lastInstallTime) || empty($lastInstallTime)) {
if(strpos($_SERVER['SCRIPT_NAME'],'install/index.php')===false) {
if(is_file(MODX_BASE_PATH . 'install/index.php')) {
header('Location: install/index.php?action=mode');
exit();
}else exit('Not installed.');
}
}

if(!defined('MODX_API_MODE')) set_parser_mode();
Expand Down

0 comments on commit fdee721

Please sign in to comment.