* fix a bug.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user