mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Fix NotificationTarget::datas deprecated access
This commit is contained in:
parent
be87338476
commit
f98a51f9b1
2
hook.php
2
hook.php
@ -613,7 +613,7 @@ function plugin_example_get_events(NotificationTargetTicket $target) {
|
|||||||
|
|
||||||
|
|
||||||
function plugin_example_get_datas(NotificationTargetTicket $target) {
|
function plugin_example_get_datas(NotificationTargetTicket $target) {
|
||||||
$target->datas['##ticket.example##'] = __("Example datas", 'example');
|
$target->data['##ticket.example##'] = __("Example datas", 'example');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,6 +41,6 @@ class PluginExampleNotificationTargetExample extends NotificationTarget {
|
|||||||
function getDatasForTemplate($event, $options=array()) {
|
function getDatasForTemplate($event, $options=array()) {
|
||||||
global $DB, $CFG_GLPI;
|
global $DB, $CFG_GLPI;
|
||||||
|
|
||||||
$this->datas['##example.name##'] = __('Example', 'example');
|
$this->data['##example.name##'] = __('Example', 'example');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user