From: Matthias Schmidt Date: Sat, 30 Jul 2016 17:26:05 +0000 (+0200) Subject: Replace usage of WCF.User with User X-Git-Tag: 3.0.0_Beta_1~865 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=495aced923d33b61134585530a421a038c9a7a58;p=GitHub%2FWoltLab%2FWCF.git Replace usage of WCF.User with User --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js index 5e86fc2c98..5708adad51 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js @@ -10,12 +10,12 @@ define( [ 'Ajax', 'Core', 'Dictionary', 'Language', 'ObjectMap', 'StringUtil', 'Dom/ChangeListener', 'Dom/Util', - 'Ui/Dialog', 'WoltLab/WCF/Ui/User/List' + 'Ui/Dialog', 'WoltLab/WCF/Ui/User/List', 'User' ], function( Ajax, Core, Dictionary, Language, ObjectMap, StringUtil, DomChangeListener, DomUtil, - UiDialog, UiUserList + UiDialog, UiUserList, User ) { "use strict"; @@ -166,7 +166,7 @@ define( this._updateBadge(element); } - if (this._options.canLike && (WCF.User.userID != elData(element, 'user-id') || this._options.canLikeOwnContent)) { + if (this._options.canLike && (User.userId != elData(element, 'user-id') || this._options.canLikeOwnContent)) { var appendTo = (this._options.buttonAppendToSelector) ? ((this._options.isSingleItem) ? elBySel(this._options.buttonAppendToSelector) : elBySel(this._options.buttonAppendToSelector, element)) : null; var insertPosition = (this._options.buttonBeforeSelector) ? ((this._options.isSingleItem) ? elBySel(this._options.buttonBeforeSelector) : elBySel(this._options.buttonBeforeSelector, element)) : null; if (insertPosition === null && appendTo === null) {