Skip to content

Commit

Permalink
dev: show at least the update provided by the server (incorrect at th…
Browse files Browse the repository at this point in the history
…e moment)
  • Loading branch information
mennodekker committed Jul 3, 2013
1 parent 2fa29c6 commit ccdf4f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/helpers/common_helper.php
Expand Up @@ -5706,6 +5706,10 @@ function getUpdateInfo()
function updateCheck()
{
$updateinfo=getUpdateInfo();
if (count($updateinfo) && trim(Yii::app()->getConfig('buildnumber'))!='')
{
setGlobalSetting('updateversions',json_encode($updateinfo));
}
if (isset($updateinfo['Targetversion']['build']) && (int)$updateinfo['Targetversion']['build']>(int)Yii::app()->getConfig('buildnumber') && trim(Yii::app()->getConfig('buildnumber'))!='')
{
setGlobalSetting('updateavailable',1);
Expand Down

0 comments on commit ccdf4f3

Please sign in to comment.