Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue: #9802 No success message for update
Dev : adding step4b inside the new comfortupdater controller for updates from old versions.
- Loading branch information
louis
committed
Jul 31, 2015
1 parent
2e6c9b4
commit ab895b5
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
application/views/admin/update/updater/steps/_old_step4b.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* This is the last view from the old updater. It is used only for updates from old uptader. | ||
*/ | ||
?> | ||
<div class="header ui-widget-header"> | ||
<?php echo sprintf(gT('ComfortUpdate step %s'),'4');?> | ||
|
||
</div><div class="updater-background"><br /> | ||
<?php | ||
if (!isset( Yii::app()->session['updateinfo'])) | ||
{ | ||
eT('On requesting the update information from limesurvey.org there has been an error:').'<br />'; | ||
if ($updateinfo['error']==1) | ||
{ | ||
eT('Your update key is invalid and was removed. ').'<br />'; | ||
} | ||
else | ||
eT('On requesting the update information from limesurvey.org there has been an error:').'<br />'; | ||
} | ||
|
||
if ($new_files) | ||
{ | ||
eT('New files were successfully installed.'); | ||
} | ||
else | ||
{ | ||
eT('There was a problem downloading the update file. Please try to restart the update process.'); | ||
} | ||
?> | ||
<br> | ||
<?php | ||
if (!$downloaderror) | ||
{ | ||
echo sprintf(gT('Buildnumber was successfully updated to %s.'),Yii::app()->session['updateinfo']['toversion']).'<br />'; | ||
eT('The update is now complete!'); ?> <br /> <?php | ||
eT('As a last step you should clear your browser cache now.');?> <br /> <?php | ||
} | ||
|
||
echo "<p><button onclick=\"window.open('".Yii::app()->getController()->createUrl("admin/globalsettings")."', '_top')\" >".gT('Back to main menu'); ?> | ||
</button></p> | ||
</div> |