From: Marcel Werk Date: Tue, 24 May 2016 09:03:30 +0000 (+0200) Subject: Removed obsolete code X-Git-Tag: 3.0.0_Beta_1~1649 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bef5d008bf4b2144f01971dc7af585509c6c0977;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete code --- 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. *