Skip to content

Commit

Permalink
Fixed issue: Purging obsolete directory files not working after stora…
Browse files Browse the repository at this point in the history
…ge calculation
  • Loading branch information
c-schmitz committed Feb 22, 2022
1 parent f589166 commit be941ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions application/views/admin/globalsettings/_storage_ajax.php
Expand Up @@ -32,26 +32,26 @@
</table>


<?php if ($surveys): ?>
<?php if ($surveys) : ?>
<label><?php eT('Survey storage'); ?></label>
<table class='table table-striped table-bordered'>
<?php foreach ($surveys as $survey): ?>
<?php foreach ($surveys as $survey) : ?>
<tr>
<td style='width: 70%;'>
<?php echo $survey['name']; ?>
<?php if ($survey['deleted']): ?>
<?php if ($survey['deleted']) : ?>
(<?php echo $survey['sid']; ?>)
<?php else: ?>
<?php else : ?>
(<a href="<?php echo $this->createUrl('admin/survey', array('sa' => 'view', 'surveyid' => $survey['sid'])); ?>"><?php echo $survey['sid']; ?></a>)
<?php endif; ?>
</td>
<td>
<?php echo $survey['size']; ?>
<?php if ($survey['showPurgeButton']): ?>
<?php if ($survey['showPurgeButton']) : ?>
<span
class='fa fa-trash text-danger pull-right btn btn-default btn-xs'
data-toggle='tooltip'
onclick='window.location = "<?php echo $this->createUrl('admin/survey', array('sa' => 'purge', 'purge_sid' => $survey['sid'])); ?>"'
onclick='window.location = "<?php echo $this->createUrl('surveyAdministration/purge', array('purge_sid' => $survey['sid'])); ?>"'
title='<?php eT('Delete survey files'); ?>'
>
</span>
Expand All @@ -62,10 +62,10 @@ class='fa fa-trash text-danger pull-right btn btn-default btn-xs'
</table>
<?php endif; ?>

<?php if ($templates): ?>
<?php if ($templates) : ?>
<label><?php eT('Themes storage'); ?></label>
<table class='table table-striped table-bordered'>
<?php foreach ($templates as $templates): ?>
<?php foreach ($templates as $templates) : ?>
<tr>
<td style='width: 70%;'><?php echo $templates['name']; ?></td>
<td><?php echo $templates['size']; ?></td>
Expand Down

0 comments on commit be941ea

Please sign in to comment.