From 8eae390c27eb5e1711f08ec445b90805e542305b Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Tue, 25 Aug 2015 17:23:10 +0200 Subject: [PATCH] Monitoring/ShowController: Init the gravatar hook refs #9916 --- .../monitoring/application/controllers/ShowController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index cfed8bd0d..ac3ee9367 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -2,6 +2,7 @@ /* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ use Icinga\Web\Url; +use Icinga\Web\Hook; use Icinga\Module\Monitoring\Backend; use Icinga\Module\Monitoring\Controller; @@ -107,6 +108,10 @@ class Monitoring_ShowController extends Controller $this->setupPaginationControl($this->view->notifications); } + if (Hook::has('gravatar')) { + $this->view->gravatar = Hook::first('gravatar'); + } + $this->view->contact = $contact; $this->view->contactName = $contactName; }