From 17bf3ee529b602606b6affa3473cf46d045abcba Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 7 Oct 2016 12:13:07 +0200 Subject: [PATCH] Fixed ban icon tooltip --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js | 2 +- wcfsetup/install/files/lib/data/user/UserAction.class.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js index e4c03db0b1..2bd40a90af 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js @@ -128,7 +128,7 @@ define(['Ajax', 'Language', 'StringUtil', 'Dom/Util', 'Ui/Dialog', 'Ui/Notificat if (data.actionName === 'ban') { banIcon = elCreate('span'); banIcon.className = 'icon icon24 fa-lock jsUserBanned jsTooltip'; - banIcon.title = Language.get('wcf.user.banned'); + banIcon.title = data.returnValues; contentTitle.appendChild(banIcon); } else if (banIcon) { diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 5d321cc5ce..3511d75640 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -227,6 +227,9 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio ); $this->unmarkItems(); + + $firstUser = new User(reset($this->objectIDs)); + return WCF::getLanguage()->getDynamicVariable('wcf.user.banned', ['user' => $firstUser]); } /** -- 2.20.1