Add FormContainer::$templateApplication
authorMatthias Schmidt <gravatronics@live.com>
Sun, 1 Dec 2019 09:43:43 +0000 (10:43 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 1 Dec 2019 09:43:43 +0000 (10:43 +0100)
See #3113

wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php

index c2653d5e748974cb0330d132af12e68d2874635c..9d1bb1b8efdd18c83088a7ecf5cb0397f80eba4e 100644 (file)
@@ -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
+               );
        }
        
        /**