From: Siebrand Mazeland Date: Mon, 30 Jan 2012 13:54:43 +0000 (+0000) Subject: Revert r110285, r110286. No new features in core during slush. X-Git-Tag: 1.31.0-rc.0~25007 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=3bc0f8cf500c81fa0c5aca88672d5e91aee87290;p=lhc%2Fweb%2Fwiklou.git Revert r110285, r110286. No new features in core during slush. Consider recommit after 1.19 is branched, and please add hooks.txt documentation, too. --- diff --git a/includes/Title.php b/includes/Title.php index 6041c0e1f9..b91c55c1d8 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4164,21 +4164,7 @@ class Title { * @return Bool */ public function isKnown() { - $isKnown = null; - - /** - * Allows overriding default behaviour for determining if a page exists. - * If $isKnown is kept as null, regular checks happen. If it's - * a boolean, this value is returned by the isKnown method. - * - * @since 1.19 - * - * @param Title $title - * @param boolean|null $isKnown - */ - wfRunHooks( 'TitleIsKnown', array( $this, &$isKnown ) ); - - return is_null( $isKnown ) ? ( $this->isAlwaysKnown() || $this->exists() ) : $isKnown; + return $this->isAlwaysKnown() || $this->exists(); } /**