mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
ModuleActionController: use isXhr()
This commit is contained in:
parent
3774eb6889
commit
bb23d0636c
@ -49,9 +49,8 @@ class ModuleActionController extends ActionController
|
||||
$resp = $this->getResponse();
|
||||
$layout = $this->_helper->layout();
|
||||
|
||||
$isXhr = $req->isXmlHttpRequest();
|
||||
$layout->moduleName = $this->moduleName;
|
||||
if ($isXhr) {
|
||||
if ($this->isXhr()) {
|
||||
$resp->setHeader('X-Icinga-Module', $layout->moduleName);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user