Do not render irrelevant HTML for Ajax calls (#4310)

#fix https://github.com/FreshRSS/FreshRSS/issues/4309
This commit is contained in:
Alexandre Alapetite
2022-04-11 22:55:29 +02:00
committed by GitHub
parent 4191f9859e
commit 0698c8a0b2
3 changed files with 13 additions and 7 deletions

View File

@@ -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">

View File

@@ -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);

View File

@@ -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);