Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Tue, 24 May 2016 09:03:30 +0000 (11:03 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 24 May 2016 09:03:30 +0000 (11:03 +0200)
wcfsetup/install/files/lib/data/page/Page.class.php

index 3b7c8bc8bb5558b98bd18e0eea04514e03a463bf..e30a33d1d551fb31fd73d0ca9d929c90985c92c0 100644 (file)
@@ -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.
         *