From bb23d0636c8a56e693d779775315fdf5832b2daa Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 22 Jun 2014 16:04:55 +0200 Subject: [PATCH] ModuleActionController: use isXhr() --- library/Icinga/Web/Controller/ModuleActionController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }