* fix a bug for upgrade to zentaopro.
This commit is contained in:
@@ -38,7 +38,7 @@ $common = $app->loadCommon();
|
||||
|
||||
/* Check for need upgrade. */
|
||||
$config->installedVersion = $common->loadModel('setting')->getVersion();
|
||||
if(version_compare($config->version, $config->installedVersion, '>')) die(header('location: upgrade.php'));
|
||||
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'));
|
||||
|
||||
$app->parseRequest();
|
||||
$common->checkPriv();
|
||||
|
||||
@@ -417,13 +417,12 @@ function setOuterBox()
|
||||
var headerH = $('#header').height();
|
||||
var navbarH = $('#modulemenu').parent().parent().height();
|
||||
var footerH = $('#footer').height() + 15;
|
||||
if(document.documentElement.clientHeight >= document.documentElement.scrollHeight)
|
||||
{
|
||||
var outerH = winHeight - headerH - footerH - navbarH - 37;
|
||||
if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) outerH = winHeight - headerH - footerH - 98;
|
||||
if ($.browser.msie && ($.browser.version == "6.0")) $('.outer').css('height', outerH);
|
||||
$('.outer').css('min-height', outerH);
|
||||
}
|
||||
|
||||
var outerH = winHeight - headerH - footerH - navbarH - 37;
|
||||
if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) outerH = winHeight - headerH - footerH - 98;
|
||||
if ($.browser.msie && ($.browser.version == "6.0")) $('.outer').css('height', outerH);
|
||||
$('.outer').css('min-height', outerH);
|
||||
|
||||
if($.browser.msie && ($.browser.version == "6.0") && !$.support.style)
|
||||
{
|
||||
winWidth -= 49;
|
||||
|
||||
Reference in New Issue
Block a user