mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
Merge pull request #3475 from matthenning/master
Make all grapher hooks available in the view
This commit is contained in:
commit
7c22dd0325
@ -1,4 +1,6 @@
|
|||||||
<?php if (isset($grapher)) {
|
<?php if (isset($graphers)) {
|
||||||
echo $grapher->getPreviewHtml($object);
|
foreach ($graphers as $grapher) {
|
||||||
|
echo $grapher->getPreviewHtml($object);
|
||||||
|
}
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ abstract class MonitoredObjectController extends Controller
|
|||||||
$this->view->tickets = Hook::first('ticket');
|
$this->view->tickets = Hook::first('ticket');
|
||||||
}
|
}
|
||||||
if (Hook::has('grapher')) {
|
if (Hook::has('grapher')) {
|
||||||
$this->view->grapher = Hook::first('grapher');
|
$this->view->graphers = Hook::all('grapher');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user