Files
FreshRSS/app/views/subscription/feed.phtml
Alexandre Alapetite 77e9877316 Add PHPStan (#4021)
* Add PHPStan
#fix https://github.com/FreshRSS/FreshRSS/issues/4016
https://phpstan.org/

```sh
composer run-script phpstan
```

* More fixes

* Fix global variables

* Add .phtml

* Fix merge
https://github.com/FreshRSS/FreshRSS/pull/4090

* Fix more warnings

* Fix view errors and enable in CI

* ReturnTypeWillChange

* Dynamic view type

* Fix Minz static/self bug
2021-12-31 17:00:51 +01:00

17 lines
346 B
PHTML

<?php /** @var FreshRSS_View $this */ ?>
<?php
if (!Minz_Request::param('ajax')) {
$this->partial('aside_subscription');
}
if ($this->feed) {
$this->renderHelper('feed/update');
} else {
?>
<div class="alert alert-warn">
<span class="alert-head"><?= _t('sub.feed.no_selected') ?></span>
<?= _t('sub.feed.think_to_add') ?>
</div>
<?php } ?>