aboutsummaryrefslogtreecommitdiff
path: root/app/layout
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/layout
parent4191f9859ec1ec524167478c6fffce1da219a8fe (diff)
Do not render irrelevant HTML for Ajax calls (#4310)
#fix https://github.com/FreshRSS/FreshRSS/issues/4309
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/layout.phtml6
1 files changed, 4 insertions, 2 deletions
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') {
</head>
<body class="<?= Minz_Request::actionName() ?>">
<?php
- flush();
- $this->partial('header');
+ if (!Minz_Request::param('ajax')) {
+ flush();
+ $this->partial('header');
+ }
?>
<div id="global">