Adds page title for category list page and add/edit form
authorMatthias Schmidt <gravatronics@live.com>
Sat, 23 Feb 2013 11:12:20 +0000 (12:12 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 23 Feb 2013 11:12:20 +0000 (12:12 +0100)
wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php
wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php

index d8ffb87d2a8a00f1e1edd0030b9ba9fb2976743f..426ed98a2d8a34aba8aed7f43cc49f4e95c78fd7 100644 (file)
@@ -92,6 +92,12 @@ abstract class AbstractCategoryAddForm extends AbstractForm {
         */
        public $packageID = 0;
        
+       /**
+        * language item with the page title
+        * @var string
+        */
+       public $pageTitle = '';
+       
        /**
         * id of the parent category id
         * @var integer
@@ -162,6 +168,10 @@ abstract class AbstractCategoryAddForm extends AbstractForm {
                        'showOrder' => $this->showOrder,
                        'title' => $this->title
                ));
+               
+               if ($this->pageTitle) {
+                       WCF::getTPL()->assign('pageTitle', $this->pageTitle);
+               }
        }
        
        /**
index 188ca839d02fa39c0358b898bbef3176f1fdf191..d816884dd6e514a5a8a01544c58d7f1282262471 100644 (file)
@@ -51,6 +51,12 @@ abstract class AbstractCategoryListPage extends AbstractPage {
         */
        public $editController = '';
        
+       /**
+        * language item with the page title
+        * @var string
+        */
+       public $pageTitle = '';
+       
        /**
         * category object type object
         * @var wcf\data\object\type\ObjectType
@@ -100,6 +106,10 @@ abstract class AbstractCategoryListPage extends AbstractPage {
                        'editController' => $this->editController,
                        'objectType' => $this->objectType
                ));
+               
+               if ($this->pageTitle) {
+                       WCF::getTPL()->assign('pageTitle', $this->pageTitle);
+               }
        }
        
        /**