summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/error/index.phtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/error/index.phtml b/app/views/error/index.phtml
index d5618d54c..0d14d7fc7 100644
--- a/app/views/error/index.phtml
+++ b/app/views/error/index.phtml
@@ -3,7 +3,11 @@
<h1 class="alert-head"><?= $this->code ?></h1>
<p>
<?= htmlspecialchars($this->errorMessage, ENT_NOQUOTES, 'UTF-8') ?><br />
+ <?php if (FreshRSS_Auth::hasAccess()) {?>
<a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
+ <?php } else { ?>
+ <a class="signin" href="<?= _url('auth', 'login') ?>"><?= _t('gen.auth.login') ?></a>
+ <?php } ?>
</p>
</div>
</div>