From ad4b99384bbec775883e18a8fad4c016334d3774 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 14 Dec 2014 20:48:24 +0100 Subject: [PATCH] Add missing language item for moderation JavaScript --- com.woltlab.wcf/templates/moderationActivation.tpl | 3 ++- com.woltlab.wcf/templates/moderationReport.tpl | 3 ++- .../lib/data/moderation/queue/ModerationQueueAction.class.php | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/com.woltlab.wcf/templates/moderationActivation.tpl b/com.woltlab.wcf/templates/moderationActivation.tpl index e28cb6d916..3f2f572f5c 100644 --- a/com.woltlab.wcf/templates/moderationActivation.tpl +++ b/com.woltlab.wcf/templates/moderationActivation.tpl @@ -15,7 +15,8 @@ 'wcf.moderation.assignedUser.change': '{lang}wcf.moderation.assignedUser.change{/lang}', 'wcf.moderation.assignedUser.error.notAffected': '{lang}wcf.moderation.assignedUser.error.notAffected{/lang}', 'wcf.moderation.status.outstanding': '{lang}wcf.moderation.status.outstanding{/lang}', - 'wcf.moderation.status.processing': '{lang}wcf.moderation.status.processing{/lang}' + 'wcf.moderation.status.processing': '{lang}wcf.moderation.status.processing{/lang}', + 'wcf.user.username.error.notFound': '{lang __literal=true}wcf.user.username.error.notFound{/lang}' }); new WCF.Moderation.Activation.Management({@$queue->queueID}, '{link controller='ModerationList' encode=false}{/link}'); diff --git a/com.woltlab.wcf/templates/moderationReport.tpl b/com.woltlab.wcf/templates/moderationReport.tpl index e715365b3e..2b5df24824 100644 --- a/com.woltlab.wcf/templates/moderationReport.tpl +++ b/com.woltlab.wcf/templates/moderationReport.tpl @@ -16,7 +16,8 @@ 'wcf.moderation.report.removeContent.reason': '{lang}wcf.moderation.report.removeContent.reason{/lang}', 'wcf.moderation.report.removeReport.confirmMessage': '{lang}wcf.moderation.report.removeReport.confirmMessage{/lang}', 'wcf.moderation.status.outstanding': '{lang}wcf.moderation.status.outstanding{/lang}', - 'wcf.moderation.status.processing': '{lang}wcf.moderation.status.processing{/lang}' + 'wcf.moderation.status.processing': '{lang}wcf.moderation.status.processing{/lang}', + 'wcf.user.username.error.notFound': '{lang __literal=true}wcf.user.username.error.notFound{/lang}' }); new WCF.Moderation.Report.Management({@$queue->queueID}, '{link controller='ModerationList' encode=false}{/link}'); diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index 551f8ed466..2cdfb2e849 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -221,12 +221,12 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { if ($this->parameters['assignedUserID'] == -1) { $this->readString('assignedUsername'); - + $this->user = User::getUserByUsername($this->parameters['assignedUsername']); if (!$this->user->userID) { throw new UserInputException('assignedUsername', 'notFound'); } - + // get handler $objectType = ObjectTypeCache::getInstance()->getObjectType($this->moderationQueueEditor->objectTypeID); if (!$objectType->getProcessor()->isAffectedUser($this->moderationQueueEditor->getDecoratedObject(), $this->user->userID)) { -- 2.20.1