mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
ActionController: Don't re-enable the layout when just setting XHR layout
In case someone doesn't want the layout, we should not force it, especially not for XHR requests.
This commit is contained in:
parent
73f254ff32
commit
0d52bb421f
@ -527,7 +527,9 @@ class ActionController extends Zend_Controller_Action
|
|||||||
$layout->setLayout($this->innerLayout);
|
$layout->setLayout($this->innerLayout);
|
||||||
$this->getResponse()->setHeader('X-Icinga-Container', 'layout', true);
|
$this->getResponse()->setHeader('X-Icinga-Container', 'layout', true);
|
||||||
} else {
|
} else {
|
||||||
$layout->setLayout($this->inlineLayout);
|
// The layout may be disabled and there's no indication that the layout is explicitly desired,
|
||||||
|
// that's why we're passing false as second parameter to setLayout
|
||||||
|
$layout->setLayout($this->inlineLayout, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->autorefreshInterval !== null) {
|
if ($this->autorefreshInterval !== null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user