Skip to content

Commit

Permalink
Dev: removing old notification system from helper
Browse files Browse the repository at this point in the history
  • Loading branch information
louis committed Sep 21, 2015
1 parent 770e818 commit 8174c21
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions application/helpers/common_helper.php
Expand Up @@ -5236,30 +5236,7 @@ function updateCheck()
Yii::app()->setFlashMessage(sprintf(gT("Error when checking for new version: %s"),$aUpdateVersions['errorcode']).'<br>'.$aUpdateVersions['errorhtml'],'error');
$aUpdateVersions=array();
}
if (count($aUpdateVersions) && trim(Yii::app()->getConfig('buildnumber'))!='')
{
$sUpdateNotificationType = getGlobalSetting('updatenotification');
switch ($sUpdateNotificationType)
{
case 'stable':
// Only show update if in stable (master) branch
if (isset($aUpdateVersions['master'])) {
$aUpdateVersion=$aUpdateVersions['master'];
$aUpdateVersions=array_intersect_key($aUpdateVersions,array('master'=>'1'));
}
break;

case 'both':
// Show first available update
$aUpdateVersion=reset($aUpdateVersions);
break;

default:
// Never show a notification
$aUpdateVersions=array();
break;
}
}

setGlobalSetting('updateversions',json_encode($aUpdateVersions));

Expand Down

0 comments on commit 8174c21

Please sign in to comment.