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

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

No files matched your search

+4 -2
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">
+4 -2
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);
+5 -3
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);