diff options
Diffstat (limited to 'includes/Title.php')
-rw-r--r-- | includes/Title.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/includes/Title.php b/includes/Title.php index c470cb5a99c5..cf428f918b64 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; } |