Skip to content

Commit

Permalink
Dev: destroy security alert after update
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 1, 2016
1 parent 562f2bc commit cefdcd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion application/controllers/admin/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,12 @@ public function updateUpdater()
if ($unzip->result )
{
$updateModel->removeTmpFile('update_updater.zip');
$updateModel->removeTmpFile('comfort_updater_cookie.txt');
$updateModel->removeTmpFile('comfort_updater_cookie.txt');
setGlobalSetting('updateavailable','0');
setGlobalSetting('updatebuild','');
setGlobalSetting('updateversions','');
Yii::app()->session['update_result']=null;
Yii::app()->session['next_update_check']=null;
return $this->controller->renderPartial('update/updater/steps/_updater_updated', array('destinationBuild'=>$destinationBuild), false, false);
}
else
Expand Down
2 changes: 1 addition & 1 deletion application/models/UpdateForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ public function destroyGlobalSettings()
setGlobalSetting('updateavailable','0');
setGlobalSetting('updatebuild','');
setGlobalSetting('updateversions','');
Yii::app()->session['security_update']=null;
Yii::app()->session['update_result']=null;
Yii::app()->session['next_update_check']=null;
}
Expand Down Expand Up @@ -555,7 +556,6 @@ public function backupDb($destionationBuild)
*/
public function getUpdateNotification()
{

if (Yii::app()->getConfig("updatable"))
{
$today = new DateTime("now");
Expand Down

0 comments on commit cefdcd1

Please sign in to comment.