From: Matthias Schmidt Date: Sat, 23 Feb 2013 11:12:20 +0000 (+0100) Subject: Adds page title for category list page and add/edit form X-Git-Tag: 2.0.0_Beta_1~457^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05d39323a65f0f54d8f03c825bc108cf0fc841fd;p=GitHub%2FWoltLab%2FWCF.git Adds page title for category list page and add/edit form --- diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php index d8ffb87d2a..426ed98a2d 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php @@ -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); + } } /** diff --git a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php index 188ca839d0..d816884dd6 100644 --- a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php @@ -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); + } } /**