From: Marcel Werk Date: Fri, 7 Oct 2016 10:13:07 +0000 (+0200) Subject: Fixed ban icon tooltip X-Git-Tag: 3.0.0_Beta_3~50^2~67 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17bf3ee529b602606b6affa3473cf46d045abcba;p=GitHub%2FWoltLab%2FWCF.git Fixed ban icon tooltip --- 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]); } /**