* fix a bug.

This commit is contained in:
wyd621
2014-03-24 08:09:51 +00:00
parent 515467317b
commit 3c35abc8af
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -78,4 +78,4 @@ $lang->upgrade->fromVersions['5_0_beta2'] = '5.0.beta2';
$lang->upgrade->fromVersions['5_0'] = '5.0';
$lang->upgrade->fromVersions['5_1'] = '5.1';
$lang->upgrade->fromVersions['5_2'] = '5.2';
$lang->upgrade->fromVersions['5_2_1'] = '5.2_1';
$lang->upgrade->fromVersions['5_2_1'] = '5.2.1';
+1 -1
View File
@@ -78,4 +78,4 @@ $lang->upgrade->fromVersions['5_0_beta2'] = '5.0.beta2';
$lang->upgrade->fromVersions['5_0'] = '5.0';
$lang->upgrade->fromVersions['5_1'] = '5.1';
$lang->upgrade->fromVersions['5_2'] = '5.2';
$lang->upgrade->fromVersions['5_2_1'] = '5.2_1';
$lang->upgrade->fromVersions['5_2_1'] = '5.2.1';
+1 -1
View File
@@ -38,7 +38,7 @@ $app->setDebug();
/* Check the installed version is the latest or not. */
$config->installedVersion = $common->loadModel('setting')->getVersion();
if(!$_SERVER['HTTP_X_REQUESTED_WITH'] and version_compare($config->version, $config->installedVersion) <= 0) die(header('location: index.php'));
if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) and version_compare($config->version, $config->installedVersion) <= 0) die(header('location: index.php'));
/* Run it. */
$app->parseRequest();