Skip to content

Commit

Permalink
Merge pull request #4226 from nextcloud/stable9-error-messages
Browse files Browse the repository at this point in the history
Replace unecessary unescaped prints with print
  • Loading branch information
MorrisJobke committed Apr 6, 2017
2 parents 3185788 + 5db35a4 commit 1e40199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/updatenotification/templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<a href="<?php p($_['downloadLink']); ?>" class="button<?php if ($_['updaterEnabled']) { p(' hidden'); } ?>"><?php p($l->t('Download now')) ?></a>
<?php } ?>
<?php } else { ?>
<strong><?php print_unescaped($l->t('Your version is up to date.')); ?></strong>
<strong><?php p($l->t('Your version is up to date.')); ?></strong>
<span class="icon-info svg" title="<?php p($l->t('Checked on %s', [$lastCheckedDate])) ?>"></span>
<?php } ?>

Expand Down
2 changes: 1 addition & 1 deletion core/templates/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<li class='error'>
<?php p($error['error']) ?><br>
<?php if(isset($error['hint']) && $error['hint']): ?>
<p class='hint'><?php print_unescaped($error['hint']) ?></p>
<p class='hint'><?php p($error['hint']) ?></p>
<?php endif;?>
</li>
<?php endforeach ?>
Expand Down

0 comments on commit 1e40199

Please sign in to comment.