Fix NotificationTarget::datas deprecated access

This commit is contained in:
Cédric Anne 2018-05-25 17:15:39 +02:00
parent be87338476
commit f98a51f9b1
2 changed files with 2 additions and 2 deletions

View File

@ -613,7 +613,7 @@ function plugin_example_get_events(NotificationTargetTicket $target) {
function plugin_example_get_datas(NotificationTargetTicket $target) {
$target->datas['##ticket.example##'] = __("Example datas", 'example');
$target->data['##ticket.example##'] = __("Example datas", 'example');
}

View File

@ -41,6 +41,6 @@ class PluginExampleNotificationTargetExample extends NotificationTarget {
function getDatasForTemplate($event, $options=array()) {
global $DB, $CFG_GLPI;
$this->datas['##example.name##'] = __('Example', 'example');
$this->data['##example.name##'] = __('Example', 'example');
}
}