* finish task #1517.

This commit is contained in:
wangyidong
2013-07-10 01:31:38 +00:00
parent 737d05bad5
commit 24b3f2f2d5
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ include '../../common/view/colorbox.html.php';
<?php echo $lang->donate;?>
<?php if($config->checkVersion):?>
<br />
<iframe id='updater' class='hidden' frameborder='0' scrolling='no' allowtransparency='true' src="http://api.zentao.net/updater-isLatest-<?php echo $config->version;?>-<?php echo $s;?>.html"></iframe>
<iframe id='updater' class='hidden' frameborder='0' 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 endif;?>
</div>
+1
View File
@@ -96,6 +96,7 @@ class webappModel extends model
*/
public function fetchAPI($url)
{
$url .= '?lang=' . str_replace('-', '_', $this->app->getClientLang());
$this->agent->fetch($url);
$result = json_decode($this->agent->results);