diff --git a/libraries/Response.php b/libraries/Response.php index c7c27ffa14..b67df80ec8 100644 --- a/libraries/Response.php +++ b/libraries/Response.php @@ -97,13 +97,10 @@ class Response $this->_footer = new Footer(); $this->_isSuccess = true; - $this->_isAjax = false; $this->_isDisabled = false; - if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) { - $this->_isAjax = true; - } - $this->_header->setAjax($this->_isAjax); - $this->_footer->setAjax($this->_isAjax); + $this->setAjax( + isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true + ); $this->_CWD = getcwd(); }