mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-26 22:27:58 -05:00
Do not render irrelevant HTML for Ajax calls (#4310)
#fix https://github.com/FreshRSS/FreshRSS/issues/4309
This commit is contained in:
committed by
GitHub
parent
4191f9859e
commit
0698c8a0b2
@@ -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">
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user