Skip to content

Commit 6ea9b86

Browse files
committed
Call RequestHook::postDispatch()
Ensuring the request is no xhr request.
1 parent b11a27d commit 6ea9b86

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

library/Icinga/Web/Controller/ActionController.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,30 @@
33

44
namespace Icinga\Web\Controller;
55

6-
use Icinga\Application\Modules\Module;
7-
use Icinga\Common\PdfExport;
8-
use Icinga\File\Pdf;
9-
use Icinga\Util\Csp;
10-
use Icinga\Web\View;
11-
use ipl\I18n\Translation;
12-
use Zend_Controller_Action;
13-
use Zend_Controller_Action_HelperBroker;
14-
use Zend_Controller_Request_Abstract;
15-
use Zend_Controller_Response_Abstract;
166
use Icinga\Application\Benchmark;
177
use Icinga\Application\Config;
8+
use Icinga\Application\Hook\RequestHook;
9+
use Icinga\Application\Modules\Module;
1810
use Icinga\Authentication\Auth;
11+
use Icinga\Common\PdfExport;
1912
use Icinga\Exception\Http\HttpMethodNotAllowedException;
2013
use Icinga\Exception\IcingaException;
2114
use Icinga\Exception\ProgrammingError;
15+
use Icinga\File\Pdf;
2216
use Icinga\Forms\AutoRefreshForm;
2317
use Icinga\Security\SecurityException;
18+
use Icinga\Util\Csp;
2419
use Icinga\Web\Session;
2520
use Icinga\Web\Url;
2621
use Icinga\Web\UrlParams;
22+
use Icinga\Web\View;
2723
use Icinga\Web\Widget\Tabs;
2824
use Icinga\Web\Window;
25+
use ipl\I18n\Translation;
26+
use Zend_Controller_Action;
27+
use Zend_Controller_Action_HelperBroker;
28+
use Zend_Controller_Request_Abstract;
29+
use Zend_Controller_Response_Abstract;
2930

3031
/**
3132
* Base class for all core action controllers
@@ -520,6 +521,8 @@ public function postDispatch()
520521

521522
if ($this->isXhr()) {
522523
$this->postDispatchXhr();
524+
} else {
525+
RequestHook::postDispatch($req);
523526
}
524527

525528
$this->shutdownSession();

0 commit comments

Comments
 (0)