Skip to content

Commit

Permalink
Fixed issue #3993: After updating using the ComfortUpdate the message…
Browse files Browse the repository at this point in the history
… 'Update available ...' remains in the upper right

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8190 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Dec 22, 2009
1 parent befe970 commit fe94fc3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions admin/update/updater.php
Expand Up @@ -245,7 +245,7 @@ function UpdateStep2()
{
$output.=$clang->gT('Please check any problems above and then proceed to the next step.').'<br />';
$output.="<p><button onclick=\"window.open('$scriptname?action=update&amp;subaction=step3', '_top')\" ";
$output.=">".sprintf($clang->gT('Proceed to step %s'),'4')."</button>";
$output.=">".sprintf($clang->gT('Proceed to step %s'),'3')."</button>";

}
}
Expand Down Expand Up @@ -331,7 +331,8 @@ function UpdateStep3()
}

$output.=$clang->gT('Please check any problems above and then proceed to the final step.');
$output.="<p><button onclick=\"window.open('$scriptname?action=update&amp;subaction=step4', '_top')\" >Continue with the last step 4</button>";
$output.="<p><button onclick=\"window.open('$scriptname?action=update&amp;subaction=step4', '_top')\" ";
$output.=">".sprintf($clang->gT('Proceed to step %s'),'4')."</button>";
$output.='</div><table><tr>';
return $output;
}
Expand Down Expand Up @@ -449,8 +450,10 @@ function UpdateStep4()
$output.=sprintf($clang->gT('Buildnumber was successfully updated to %s.'),$_SESSION['updateinfo']['toversion']).'<br />';

$output.=$clang->gT('Please check any problems above - update was done.').'<br />';
$output.="<p><button onclick=\"window.open('$scriptname?action=globalsettings&amp;subaction=updatecheck', '_top')\" >Back to main menu</button>";
$output.="<p><button onclick=\"window.open('$scriptname?action=globalsettings&amp;subaction=updatecheck', '_top')\" >".$clang->gT('Back to main menu')."</button>";
$output.='</div>';
setGlobalSetting('updatelastcheck','1980-01-01 00:00');
setGlobalSetting('updateavailable','0');
return $output;
}

Expand Down

0 comments on commit fe94fc3

Please sign in to comment.