From c7c1e0c59bae111eba3b498b93204bc8218ab155 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 9 Jun 2013 23:56:06 +0200 Subject: [PATCH] Small moderation improvement --- com.woltlab.wcf/templates/moderationList.tpl | 2 +- .../queue/ViewableModerationQueue.class.php | 11 +++++++++++ wcfsetup/install/lang/de.xml | 2 ++ wcfsetup/install/lang/en.xml | 2 ++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/moderationList.tpl b/com.woltlab.wcf/templates/moderationList.tpl index 79032e9463..46cd1c1f3d 100644 --- a/com.woltlab.wcf/templates/moderationList.tpl +++ b/com.woltlab.wcf/templates/moderationList.tpl @@ -107,7 +107,7 @@ {lang}wcf.moderation.type.{@$definitionNames[$entry->objectTypeID]}{/lang} {$entry->getTitle()} - {if $entry->getAffectedObject()->getUserID()}{$entry->getAffectedObject()->getUsername()}{else}{$entry->getAffectedObject()->getUsername()}{/if} - {@$entry->getAffectedObject()->getTime()|time} + {if $entry->getAffectedObject()->getUserID()}{$entry->getAffectedObject()->getUsername()}{else}{$entry->getAffectedObject()->getUsername()}{/if} - {@$entry->getAffectedObject()->getTime()|time} - {lang}wcf.moderation.type.{@$entry->getObjectTypeName()}{/lang} {if $entry->assignedUserID}{$entry->assignedUsername}{/if} {if $entry->lastChangeTime}{@$entry->lastChangeTime|time}{/if} diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php index a48cea9d35..eb61a1dbe8 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php @@ -1,5 +1,6 @@ message)); } + + /** + * Returns the object type name. + * + * @return string + */ + public function getObjectTypeName() { + $objectType = ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID); + return $objectType->objectType; + } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index e8548a30b0..eebcff82bd 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1699,6 +1699,8 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getAllowedExtensions() + + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 685aaa30d7..3c396feb00 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1698,6 +1698,8 @@ Allowed extensions: {', '|implode:$attachmentHandler->getAllowedExtensions()}]]> + + -- 2.20.1