From: Matthias Schmidt Date: Sun, 1 Dec 2019 09:43:43 +0000 (+0100) Subject: Add FormContainer::$templateApplication X-Git-Tag: 5.2.0_Beta_4~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1d8ce0ddfe2fa57891e7ef2964cf7b0256381b3a;p=GitHub%2FWoltLab%2FWCF.git Add FormContainer::$templateApplication See #3113 --- diff --git a/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php index c2653d5e74..9d1bb1b8ef 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php @@ -31,6 +31,12 @@ class FormContainer implements IFormContainer { */ protected $templateName = '__formContainer'; + /** + * name of the template's application used to output this container + * @var string + */ + protected $templateApplication = 'wcf'; + /** * @inheritDoc */ @@ -42,9 +48,14 @@ class FormContainer implements IFormContainer { * @inheritDoc */ public function getHtml() { - return WCF::getTPL()->fetch($this->templateName, 'wcf', array_merge($this->getHtmlVariables(), [ - 'container' => $this - ]), true); + return WCF::getTPL()->fetch( + $this->templateName, + $this->templateApplication, + array_merge($this->getHtmlVariables(), [ + 'container' => $this + ]), + true + ); } /**