From 42809c4702fa5775a5c554ab1c9d99429f35bd8a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 21 May 2013 16:08:10 +0200 Subject: [PATCH] Resolved TODO --- wcfsetup/install/files/acp/templates/labelGroupAdd.tpl | 2 +- .../object/type/LabelObjectTypeContainer.class.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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. * -- 2.20.1