From: Marcel Werk Date: Tue, 21 May 2013 14:08:10 +0000 (+0200) Subject: Resolved TODO X-Git-Tag: 2.0.0_Beta_1~96^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42809c4702fa5775a5c554ab1c9d99429f35bd8a;p=GitHub%2FWoltLab%2FWCF.git Resolved TODO --- diff --git a/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl b/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl index 2e86afabdc..f6517bc104 100644 --- a/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl +++ b/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl @@ -89,7 +89,7 @@ {else}
-
objectTypeID = {@$container->getObjectTypeID()}
+
{lang}wcf.acp.label.container.{$container->getObjectTypeName()}{/lang}
    {foreach from=$container item=objectType} diff --git a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php index 32061d48f4..b76c3957cf 100644 --- a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php +++ b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php @@ -1,5 +1,6 @@ objectTypeID; } + /** + * Returns the object type name. + * + * @return string + */ + public function getObjectTypeName() { + return ObjectTypeCache::getInstance()->getObjectType($this->getObjectTypeID())->objectType; + } + /** * Returns true, if container represents only a boolean option. *