From 0698c8a0b22a7c45fbb98f55cd8a628f873f5515 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 11 Apr 2022 22:55:29 +0200 Subject: Do not render irrelevant HTML for Ajax calls (#4310) #fix https://github.com/FreshRSS/FreshRSS/issues/4309 --- app/views/index/normal.phtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/views/index/normal.phtml') 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 @@ 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); -- cgit v1.2.3