From: Marcel Werk Date: Sun, 9 Jun 2013 21:56:06 +0000 (+0200) Subject: Small moderation improvement X-Git-Tag: 2.0.0_Beta_4~84 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7c1e0c59bae111eba3b498b93204bc8218ab155;p=GitHub%2FWoltLab%2FWCF.git Small moderation improvement --- 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()}]]> + +