From 38129560607c9c60d7b1e86fccba37e1a0ea2491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Mon, 28 May 2018 11:30:28 +0200 Subject: [PATCH] Fix deprecated calls to NotificationTarget class --- inc/notificationtargetexample.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/notificationtargetexample.class.php b/inc/notificationtargetexample.class.php index c7702f3..a1f08cf 100644 --- a/inc/notificationtargetexample.class.php +++ b/inc/notificationtargetexample.class.php @@ -38,7 +38,7 @@ class PluginExampleNotificationTargetExample extends NotificationTarget { return array ('alert' => 'alert example'); } - function getDatasForTemplate($event, $options=array()) { + function addDataForTemplate($event, $options=array()) { global $DB, $CFG_GLPI; $this->data['##example.name##'] = __('Example', 'example');