SessionManager: Ignore Session object destruction during global shutdown
[lhc/web/wiklou.git] / includes / WatchedItem.php
index 0495536..4dbe0f6 100644 (file)
@@ -140,11 +140,7 @@ class WatchedItem {
         */
        public function getTitle() {
                if ( !$this->title ) {
-                       if ( $this->linkTarget instanceof Title ) {
-                               $this->title = $this->linkTarget;
-                       } else {
-                               $this->title = Title::newFromLinkTarget( $this->linkTarget );
-                       }
+                       $this->title = Title::newFromLinkTarget( $this->linkTarget );
                }
                return $this->title;
        }