* fix for doc view page and adjust index.php for check upgrade.
This commit is contained in:
@@ -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
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user