Skip to content

Commit

Permalink
Fixed issue #7233: Missing error message when using ComfortUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 25, 2013
1 parent c77bc96 commit ea9061b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
4 changes: 3 additions & 1 deletion application/controllers/admin/update.php
Expand Up @@ -144,7 +144,9 @@ function step2()

list($error, $updateinfo, $cookies) = $this->_getChangedFiles($buildnumber, $updatebuild, $updatekey);
$aData = $this->_getFileStatus($updateinfo);

$aReadOnlyFiles=array_unique($aData['readonlyfiles']);
sort($aReadOnlyFiles);
$aData['readonlyfiles']=$aReadOnlyFiles;
Yii::app()->session['updateinfo'] = $updateinfo;
Yii::app()->session['updatesession'] = $cookies;

Expand Down
22 changes: 13 additions & 9 deletions application/views/admin/update/step2.php
Expand Up @@ -30,15 +30,19 @@
{
echo '<h3>'.$clang->gT('Checking existing LimeSurvey files...').'</h3>';
if (count($readonlyfiles)>0)
{
{ ?>

$readonlyfiles=array_unique($readonlyfiles);
sort($readonlyfiles);
<span class="warningtitle"><?php $clang->eT('Warning: The following files/directories need to be updated but their permissions are set to read-only.'); ?><br />
<?php $clang->eT('You must set according write permissions on these filese before you can proceed. If you are unsure what to do please contact your system administrator for advice.'); ?><br />
</span><ul>
<?php
foreach ($readonlyfiles as $readonlyfile)
{
echo '<li>'.htmlspecialchars($readonlyfile).'</li>';
}
echo '</ul>';
{?>
<li><?php echo htmlspecialchars($readonlyfile); ?></li>
<?php
}?>
</ul>
<?php
}
if (count($existingfiles)>0)
{
Expand All @@ -56,9 +60,9 @@

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

0 comments on commit ea9061b

Please sign in to comment.