mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Fix deprecated calls to NotificationTarget class
This commit is contained in:
parent
56019300ca
commit
3812956060
@ -38,7 +38,7 @@ class PluginExampleNotificationTargetExample extends NotificationTarget {
|
|||||||
return array ('alert' => 'alert example');
|
return array ('alert' => 'alert example');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDatasForTemplate($event, $options=array()) {
|
function addDataForTemplate($event, $options=array()) {
|
||||||
global $DB, $CFG_GLPI;
|
global $DB, $CFG_GLPI;
|
||||||
|
|
||||||
$this->data['##example.name##'] = __('Example', 'example');
|
$this->data['##example.name##'] = __('Example', 'example');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user