Fix deprecated calls to NotificationTarget class

This commit is contained in:
Cédric Anne 2018-05-28 11:30:28 +02:00
parent 56019300ca
commit 3812956060

View File

@ -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');