* fix for doc view page and adjust index.php for check upgrade.

This commit is contained in:
wangyidong
2018-01-22 13:14:08 +08:00
parent 911e270775
commit 11014675d2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -6,3 +6,4 @@ fieldset > .content table tr th { border-top: 1px solid #BBB;
background-color: #F7F7F7;
}
fieldset > .content table tr th, fieldset > .content table tr td{ padding: 5px 10px; }
.col-main{width:100%}
+1 -1
View File
@@ -40,7 +40,7 @@ if(isset($_GET['mode']) and $_GET['mode'] == 'getconfig') die(helper::removeUTF8
/* Check for need upgrade. */
$config->installedVersion = $common->loadModel('setting')->getVersion();
if(!(!is_numeric($config->version{0}) and $config->version{0} != $config->installedVersion{0}) and version_compare($config->version, $config->installedVersion, '>')) die(header('location: upgrade.php'));
if(((is_numeric($config->version{0}) and is_numeric($config->installedVersion{0})) or $config->version{0} == $config->installedVersion{0}) and version_compare($config->version, $config->installedVersion, '>')) die(header('location: upgrade.php'));
/* Remove install.php and upgrade.php. */
if(file_exists('install.php') or file_exists('upgrade.php'))