Revert r110285, r110286. No new features in core during slush.
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 30 Jan 2012 13:54:43 +0000 (13:54 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 30 Jan 2012 13:54:43 +0000 (13:54 +0000)
Consider recommit after 1.19 is branched, and please add hooks.txt documentation, too.

includes/Title.php

index 6041c0e..b91c55c 100644 (file)
@@ -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();
        }
 
        /**