From bef5d008bf4b2144f01971dc7af585509c6c0977 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 24 May 2016 11:03:30 +0200 Subject: [PATCH] Removed obsolete code --- wcfsetup/install/files/lib/data/page/Page.class.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index 3b7c8bc8bb..e30a33d1d5 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -172,9 +172,6 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { */ public function getTitle() { $title = PageCache::getInstance()->getPageTitle($this->pageID); - if (empty($title)) { - $title = $this->getGenericTitle(); - } return $title; } @@ -300,15 +297,6 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { return ''; } - /** - * Returns the value of a generic phrase based upon a page's identifier. - * - * @return string generic title - */ - protected function getGenericTitle() { - return WCF::getLanguage()->get('wcf.page.' . $this->identifier); - } - /** * Returns the page with the given identifier. * -- 2.20.1