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

Loading…
Cancel
Save