Monitoring/ShowController: Init the gravatar hook

refs #9916
This commit is contained in:
Alexander Fuhr 2015-08-25 17:23:10 +02:00
parent b621226907
commit 8eae390c27

View File

@ -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;
}