* Distinguish update url of english from chinese.

This commit is contained in:
daitingting
2018-04-02 16:10:40 +08:00
parent 45fa54c357
commit 2a595f5077
+2 -1
View File
@@ -74,7 +74,8 @@ if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js');
</div>
<div id="poweredby">
<?php if($config->checkVersion):?>
<iframe id='updater' class='hidden' frameborder='0' width='100%' scrolling='no' allowtransparency='true' src="http://api.zentao.net/updater-isLatest-<?php echo $config->version;?>-<?php echo $s;?>.html?lang=<?php echo str_replace('-', '_', $this->app->getClientLang())?>"></iframe>
<?php $siteURL = $this->app->getClientLang() == 'en' ? 'http://api.zentao.pm' : 'http://api.zentao.net';?>
<iframe id='updater' class='hidden' frameborder='0' width='100%' scrolling='no' allowtransparency='true' src="<?php echo $siteURL;?>/updater-isLatest-<?php echo $config->version;?>-<?php echo $s;?>.html?lang=<?php echo str_replace('-', '_', $this->app->getClientLang())?>"></iframe>
<?php endif;?>
<?php echo html::hidden('verifyRand', $rand);?>
</div>