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/layout/layout.phtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/layout/layout.phtml') diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index 1d41cc690..e0519960e 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -47,8 +47,10 @@ if (_t('gen.dir') === 'rtl') { partial('header'); + if (!Minz_Request::param('ajax')) { + flush(); + $this->partial('header'); + } ?>
-- cgit v1.2.3