From: Brion VIBBER Date: Sun, 3 Jun 2012 11:00:54 +0000 (+0000) Subject: Revert "Adding sanity check to Title::isRedirect()." X-Git-Tag: 1.31.0-rc.0~23431^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=d7f7a6234b36a3ab64df46ff46319f22d9f9ff1a;p=lhc%2Fweb%2Fwiklou.git Revert "Adding sanity check to Title::isRedirect()." This reverts commit 7d12b7b72c2060c58b6bd0759b80d985bb9431be --- diff --git a/includes/Title.php b/includes/Title.php index c470cb5a99..cf428f918b 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; }