Wiki: Use the same icons for notification as in the forum tool and same language variables for coherence -refs BT#21164

pull/4964/head
NicoDucou 2 years ago
parent 21a0371f2b
commit 864f73fe6c
  1. 16
      main/wiki/wiki.inc.php

@ -1256,16 +1256,16 @@ class Wiki
if (api_is_allowed_to_session_edit()) {
if (self::check_notify_page($page) == 1) {
$notify_page = Display::return_icon(
'messagebox_info.png',
get_lang('CancelNotifyByEmail'),
'notification_mail.png',
get_lang('CancelNotifyMe'),
[],
ICON_SIZE_MEDIUM
);
$lock_unlock_notify_page = 'unlocknotify';
} else {
$notify_page = Display::return_icon(
'mail.png',
get_lang('NotifyByEmail'),
'notification_mail_na.png',
get_lang('NotifyMe'),
[],
ICON_SIZE_MEDIUM
);
@ -4104,16 +4104,16 @@ class Wiki
// discussion action: email notification
if (self::check_notify_discuss($page) == 1) {
$notify_disc = Display::return_icon(
'messagebox_info.png',
get_lang('CancelNotifyDiscussByEmail'),
'notification_mail.png',
get_lang('CancelNotifyMe'),
'',
ICON_SIZE_SMALL
);
$lock_unlock_notify_disc = 'unlocknotifydisc';
} else {
$notify_disc = Display::return_icon(
'mail.png',
get_lang('NotifyDiscussByEmail'),
'notification_mail_na.png',
get_lang('NotifyMe'),
'',
ICON_SIZE_SMALL
);

Loading…
Cancel
Save