From: Alexander Ebert Date: Tue, 16 Jul 2019 17:27:27 +0000 (+0200) Subject: Changed "reputation" into "reactions" X-Git-Tag: 5.2.0_Alpha_2~10^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=587bc501252dd3e04b6dcdc6d00e7b97d556c9aa;p=GitHub%2FWoltLab%2FWCF.git Changed "reputation" into "reactions" --- diff --git a/com.woltlab.wcf/objectType.xml b/com.woltlab.wcf/objectType.xml index 138f01e525..d0da57fbcd 100644 --- a/com.woltlab.wcf/objectType.xml +++ b/com.woltlab.wcf/objectType.xml @@ -673,12 +673,6 @@ likesReceived 0 - - com.woltlab.wcf.userReputation - com.woltlab.wcf.condition.userGroupAssignment - wcf\system\condition\UserReputationCondition - contents - com.woltlab.wcf.userOptions com.woltlab.wcf.condition.userGroupAssignment @@ -765,12 +759,6 @@ likesReceived 0 - - com.woltlab.wcf.userReputation - com.woltlab.wcf.condition.trophy - wcf\system\condition\UserReputationCondition - contents - com.woltlab.wcf.userOptions com.woltlab.wcf.condition.trophy @@ -900,13 +888,6 @@ likesReceived 0 - - com.woltlab.wcf.userReputation - com.woltlab.wcf.condition.notice - wcf\system\condition\UserReputationCondition - com.woltlab.wcf.user - contents - com.woltlab.wcf.user.userOptions com.woltlab.wcf.condition.notice @@ -1106,13 +1087,6 @@ likesReceived 0 - - com.woltlab.wcf.userReputation - com.woltlab.wcf.condition.ad - wcf\system\condition\UserReputationCondition - com.woltlab.wcf.user - contents - com.woltlab.wcf.user.userOptions com.woltlab.wcf.condition.ad @@ -1315,12 +1289,6 @@ likesReceived 0 - - com.woltlab.wcf.userReputation - com.woltlab.wcf.bulkProcessing.user.condition - wcf\system\condition\UserReputationCondition - contents - com.woltlab.wcf.userOptions com.woltlab.wcf.bulkProcessing.user.condition @@ -1413,12 +1381,6 @@ likesReceived 0 - - com.woltlab.wcf.userReputation - com.woltlab.wcf.condition.userSearch - wcf\system\condition\UserReputationCondition - contents - com.woltlab.wcf.userOptions com.woltlab.wcf.condition.userSearch diff --git a/wcfsetup/install/files/lib/page/MembersListPage.class.php b/wcfsetup/install/files/lib/page/MembersListPage.class.php index da08ea6ebd..183bed83b7 100644 --- a/wcfsetup/install/files/lib/page/MembersListPage.class.php +++ b/wcfsetup/install/files/lib/page/MembersListPage.class.php @@ -54,7 +54,7 @@ class MembersListPage extends SortablePage { /** * @inheritDoc */ - public $validSortFields = ['username', 'registrationDate', 'activityPoints', 'reactionReputation', 'lastActivityTime']; + public $validSortFields = ['username', 'registrationDate', 'activityPoints', 'likesReceived', 'lastActivityTime']; /** * @inheritDoc @@ -133,10 +133,6 @@ class MembersListPage extends SortablePage { * @inheritDoc */ protected function readObjects() { - if ($this->sortField === 'reactionReputation') { - $this->sqlOrderBy = 'user_table.likesReceived '. $this->sortOrder; - } - parent::readObjects(); $userIDs = []; diff --git a/wcfsetup/install/files/lib/system/condition/UserReputationCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserReputationCondition.class.php deleted file mode 100644 index 0fad8b6151..0000000000 --- a/wcfsetup/install/files/lib/system/condition/UserReputationCondition.class.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @package WoltLabSuite\Core\System\Condition - */ -class UserReputationCondition extends AbstractIntegerCondition implements IContentCondition, IObjectListCondition, IUserCondition { - use TObjectListUserCondition; - - /** - * @inheritDoc - */ - public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { - if (!($objectList instanceof UserList)) { - throw new \InvalidArgumentException("Object list is no instance of '".UserList::class."', instance of '".get_class($objectList)."' given."); - } - - if (isset($conditionData['greaterThan'])) { - /** @noinspection PhpUndefinedFieldInspection */ - $objectList->getConditionBuilder()->add('user_table.likesReceived > ?', [$conditionData['greaterThan']]); - } - if (isset($conditionData['lessThan'])) { - $objectList->getConditionBuilder()->add('user_table.likesReceived < ?', [$conditionData['lessThan']]); - } - } - - /** - * @inheritDoc - */ - public function checkUser(Condition $condition, User $user) { - if ($condition->greaterThan !== null && $user->likesReceived <= $condition->greaterThan) { - return false; - } - if ($condition->lessThan !== null && $user->likesReceived >= $condition->lessThan) { - return false; - } - - return true; - } - - /** - * @inheritDoc - */ - protected function getIdentifier() { - return 'user_userReputation'; - } - - /** - * @inheritDoc - */ - protected function getLabel() { - return WCF::getLanguage()->get('wcf.user.condition.userReputation'); - } - - /** - * @inheritDoc - */ - public function showContent(Condition $condition) { - if (!WCF::getUser()->userID) return false; - - return $this->checkUser($condition, WCF::getUser()); - } -} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index e0dd805a6f..8958360f38 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1511,7 +1511,7 @@ Das Fehlerprotokoll enthält {$data[count]} neue Einträge. Die ersten drei, in - + @@ -3977,7 +3977,6 @@ Dateianhänge: - @@ -4618,11 +4617,10 @@ sich{/if} nicht bei uns registriert {if LANGUAGE_USE_INFORMAL_VARIANT}hast{else} registrationDate|time}]]> - + - @@ -4875,7 +4873,7 @@ Die E-Mail-Adresse des neuen Benutzers lautet: {@$user->email} - + @@ -4898,7 +4896,6 @@ Die E-Mail-Adresse des neuen Benutzers lautet: {@$user->email} - diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index c9da212a61..f773393c8a 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3895,7 +3895,7 @@ Attachments: - + username}]]> @@ -3923,7 +3923,6 @@ Attachments: - @@ -4615,11 +4614,10 @@ not register with us.]]> registrationDate|time}]]> - + - @@ -4871,7 +4869,7 @@ Open the link below to access the user profile: - + @@ -4894,7 +4892,6 @@ Open the link below to access the user profile: -