Revert "Adding sanity check to Title::isRedirect()."
authorBrion VIBBER <brion@wikimedia.org>
Sun, 3 Jun 2012 11:00:54 +0000 (11:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 3 Jun 2012 11:00:54 +0000 (11:00 +0000)
This reverts commit 7d12b7b72c2060c58b6bd0759b80d985bb9431be

includes/Title.php

index c470cb5..cf428f9 100644 (file)
@@ -2817,13 +2817,7 @@ class Title {
                        return $this->mRedirect = false;
                }
                $linkCache = LinkCache::singleton();
-               $cached = $linkCache->getGoodLinkFieldObj( $this, 'redirect' );
-
-               if ( $cached === null ) { # check the assumption that the cache actually knows about this title
-                       throw new MWException( "LinkCache doesn't currently know about this title: " . $this->getPrefixedDBkey() );
-               }
-
-               $this->mRedirect = (bool)$cached;
+               $this->mRedirect = (bool)$linkCache->getGoodLinkFieldObj( $this, 'redirect' );
 
                return $this->mRedirect;
        }