Skip to content

Commit

Permalink
Dev: force page reload after update to take in account the new sessio…
Browse files Browse the repository at this point in the history
…n variables
  • Loading branch information
LouisGac committed Mar 1, 2016
1 parent 2aed6cb commit 065f2eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions application/views/admin/update/updater/steps/_final.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,21 @@
<div class="updater-background">
<?php
echo sprintf(gT('Buildnumber was successfully updated to %s.'),Yii::app()->session['updateinfo']['toversion']).'<br />';
eT('The update is now complete!');
?>
eT('The update is now complete!');
?>
<br/>
<?php
eT("if needed the database will be updated as a last step.");
?>
<br />
<?php eT('As a last step you should clear your browser cache now.'); ?>
<br />
<br />
<?php eT('As a last step you should clear your browser cache now.'); ?>
<br />

<a id="backToMainMenu" class="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only limebutton" href="<?php echo Yii::app()->createUrl("admin/globalsettings"); ?>" role="button" aria-disabled="false">
<a id="backToMainMenu" class="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only limebutton" href="<?php echo Yii::app()->createUrl("admin"); ?>" role="button" aria-disabled="false">
<span class="ui-button-text"><?php eT('Back to main menu'); ?></span>
</a>
</a>
</div>

<script>
$('#backToMainMenu').comfortUpdateNextStep({'step': 5});
$('#backToMainMenu').comfortUpdateNextStep({'step': 5});
</script>

Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<?php eT("ComfortUpdate has been updated!");?>
</p>
<p>
<?php eT("You can now continue updating your LimeSurvey Installation.");?>
<?php eT("You can now continue updating your LimeSurvey Installation.");?>
</p>

</div>

<a class="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only limebutton" href="<?php echo $urlContinue;?>" role="button" aria-disabled="false">
<a class="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only limebutton" onclick="window.location.reload(true);" role="button" aria-disabled="false">
<span class="ui-button-text"><?php eT("Continue"); ?></span>
</a>

0 comments on commit 065f2eb

Please sign in to comment.