diff --git a/library/Icinga/Web/Controller/ModuleActionController.php b/library/Icinga/Web/Controller/ModuleActionController.php index 1f56ed688..5992cad6f 100644 --- a/library/Icinga/Web/Controller/ModuleActionController.php +++ b/library/Icinga/Web/Controller/ModuleActionController.php @@ -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); }