aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorBrion VIBBER <brion@wikimedia.org>2012-06-03 11:00:54 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2012-06-03 11:00:54 +0000
commitd7f7a6234b36a3ab64df46ff46319f22d9f9ff1a (patch)
tree8f050cb82aec72c75815a82b4e0b5076db93d3d3 /includes
parent7d12b7b72c2060c58b6bd0759b80d985bb9431be (diff)
downloadmediawikicore-d7f7a6234b36a3ab64df46ff46319f22d9f9ff1a.tar.gz
mediawikicore-d7f7a6234b36a3ab64df46ff46319f22d9f9ff1a.zip
Revert "Adding sanity check to Title::isRedirect()."
This reverts commit 7d12b7b72c2060c58b6bd0759b80d985bb9431be
Diffstat (limited to 'includes')
-rw-r--r--includes/Title.php8
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;
}