Files
FreshRSS/app/views/index/tos.phtml
Alexandre Alapetite 7a5236de3f 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
2019-10-23 11:18:20 +02:00

14 lines
301 B
PHTML

<div class="post content">
<?php if ($this->can_register) { ?>
<a href="<?= _url('auth', 'register') ?>">
<?= _t('gen.action.back') ?>
</a>
<?php } else { ?>
<a href="<?= _url('index', 'index') ?>">
<?= _t('gen.action.back') ?>
</a>
<?php } ?>
<?= $this->terms_of_service ?>
</div>