aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/pagination.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-23 11:18:20 +0200
committerGravatar GitHub <noreply@github.com> 2019-10-23 11:18:20 +0200
commit7a5236de3f13f08b8c51eb183c0dcf1c8c85beca (patch)
tree10a09f07458ed1279e62646188cb42e87fe0ed8f /app/views/helpers/pagination.phtml
parentfdfd8ce9be182943e73d20ec3bff4d560c5b7503 (diff)
Take advantage of PHP 5.4+ short echo (#2585)
* Take advantage of PHP 5.4+ short echo https://php.net/migration54.new-features thanks to https://github.com/FreshRSS/FreshRSS/pull/2495 Use `<?= ?>` instead of `<?php echo; ?>` 10kB of code saved :-) Done with regular expression: ``` <\?php echo (.+?);? *\?> <?= \1 ?> ``` * Try Travis fix https://github.com/squizlabs/PHP_CodeSniffer/issues/2045#issuecomment-395238272
Diffstat (limited to 'app/views/helpers/pagination.phtml')
-rwxr-xr-xapp/views/helpers/pagination.phtml16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml
index fc37ce3f5..b7d62ceab 100755
--- a/app/views/helpers/pagination.phtml
+++ b/app/views/helpers/pagination.phtml
@@ -18,26 +18,26 @@
?>
<form id="mark-read-pagination" method="post">
-<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
+<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<ul class="pagination">
<li class="item pager-next">
<?php if (FreshRSS_Context::$next_id) { ?>
- <a id="load_more" href="<?php echo Minz_Url::display($url_next); ?>">
- <?php echo _t('gen.pagination.load_more'); ?>
+ <a id="load_more" href="<?= Minz_Url::display($url_next) ?>">
+ <?= _t('gen.pagination.load_more') ?>
</a>
<?php } elseif ($url_mark_read) { ?>
<button id="bigMarkAsRead"
- class="as-link <?php echo FreshRSS_Context::$user_conf->reading_confirm ? 'confirm" disabled="disabled' : ''; ?>"
+ class="as-link <?= FreshRSS_Context::$user_conf->reading_confirm ? 'confirm" disabled="disabled' : '' ?>"
form="mark-read-pagination"
- formaction="<?php echo Minz_Url::display($url_mark_read); ?>"
+ formaction="<?= Minz_Url::display($url_mark_read) ?>"
type="submit">
- <?php echo _t('gen.pagination.nothing_to_load'); ?><br />
+ <?= _t('gen.pagination.nothing_to_load') ?><br />
<span class="bigTick">✓</span><br />
- <?php echo _t('gen.pagination.mark_all_read'); ?>
+ <?= _t('gen.pagination.mark_all_read') ?>
</button>
<?php } else { ?>
<a id="bigMarkAsRead" href=".">
- <?php echo _t('gen.pagination.nothing_to_load'); ?><br />
+ <?= _t('gen.pagination.nothing_to_load') ?><br />
</a>
<?php } ?>
</li>