Skip to content

Commit

Permalink
Fixed issue #7189: Successful update on ComfortUpdate shows update er…
Browse files Browse the repository at this point in the history
…ror in step 4
  • Loading branch information
c-schmitz committed Jan 22, 2013
1 parent d1e7597 commit afd683a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/update.php
Expand Up @@ -422,7 +422,7 @@ function step4()
// We create this new language object here because the language files might have been overwritten earlier
// and the pointers to the file from the application language are not valid anymore
$aLanguage = new Limesurvey_lang(Yii::app()->session['adminlang']);
$aData = array('clang' => $aLanguage);
$aData['clang'] = $aLanguage;

$this->_renderWrappedTemplate('update', 'step4', $aData);
}
Expand Down
15 changes: 9 additions & 6 deletions application/views/admin/update/step2.php
Expand Up @@ -42,9 +42,10 @@
}
if (count($existingfiles)>0)
{
$clang->eT('The following files would be added by the update but already exist. This is very unusual and may be co-incidental.').'<br />';
$clang->eT('We recommend that these files should be replaced by the update procedure.').'<br />';
echo '<ul>';
$clang->eT('The following files would be added by the update but already exist. This is very unusual and may be co-incidental.');?><br />
<?php $clang->eT('We recommend that these files should be replaced by the update procedure.');?><br />
<ul>
<?php
sort($existingfiles);
foreach ($existingfiles as $existingfile)
{
Expand All @@ -55,9 +56,11 @@

if (count($modifiedfiles)>0)
{
$clang->eT('The following files will be modified or deleted but were already modified by someone else.').'<br />';
$clang->eT('We recommend that these files should be replaced by the update procedure.').'<br />';
echo '<ul>';
$clang->eT('The following files will be modified or deleted but were already modified by someone else.');?><br />
<?php
$clang->eT('We recommend that these files should be replaced by the update procedure.');?><br />
<ul>
<?php
sort($modifiedfiles);
foreach ($modifiedfiles as $modifiedfile)
{
Expand Down

0 comments on commit afd683a

Please sign in to comment.