From 05d39323a65f0f54d8f03c825bc108cf0fc841fd Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 23 Feb 2013 12:12:20 +0100 Subject: [PATCH] Adds page title for category list page and add/edit form --- .../lib/acp/form/AbstractCategoryAddForm.class.php | 10 ++++++++++ .../lib/acp/page/AbstractCategoryListPage.class.php | 10 ++++++++++ 2 files changed, 20 insertions(+) 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); + } } /** -- 2.20.1