aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-04-11 22:55:29 +0200
committerGravatar GitHub <noreply@github.com> 2022-04-11 22:55:29 +0200
commit0698c8a0b22a7c45fbb98f55cd8a628f873f5515 (patch)
treed125e685630595b7277b25e045d95e0daafd2487 /app/views
parent4191f9859ec1ec524167478c6fffce1da219a8fe (diff)
Do not render irrelevant HTML for Ajax calls (#4310)
#fix https://github.com/FreshRSS/FreshRSS/issues/4309
Diffstat (limited to 'app/views')
-rw-r--r--app/views/index/normal.phtml6
-rw-r--r--app/views/index/reader.phtml8
2 files changed, 9 insertions, 5 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index 49e3c791a..555582c5f 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -1,7 +1,9 @@
<?php
/** @var FreshRSS_View $this */
-$this->partial('aside_feed');
-$this->partial('nav_menu');
+if (!Minz_Request::param('ajax')) {
+ $this->partial('aside_feed');
+ $this->partial('nav_menu');
+}
call_user_func($this->callbackBeforeEntries, $this);
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index b408e3480..3bd644367 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -1,7 +1,9 @@
-<?php /** @var FreshRSS_View $this */ ?>
<?php
-$this->partial('aside_feed');
-$this->partial('nav_menu');
+/** @var FreshRSS_View $this */
+if (!Minz_Request::param('ajax')) {
+ $this->partial('aside_feed');
+ $this->partial('nav_menu');
+}
call_user_func($this->callbackBeforeEntries, $this);