Revert r31505, r31510 (secureAndSplit hook).
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 3 Mar 2008 19:54:22 +0000 (19:54 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 3 Mar 2008 19:54:22 +0000 (19:54 +0000)
This hook doesn't seem well thought out; a hook isn't given clean access to the various possible fields it's likely to want to manipulate, and generally feels a bit rushed.

docs/hooks.txt
includes/Title.php

index 979e8ab..a6f381b 100644 (file)
@@ -1029,10 +1029,6 @@ $user: user who did the move
 $pageid: database ID of the page that's been moved
 $redirid: database ID of the created redirect
 
-'TitleSecureAndSplit': At the end of Title::secureAndSplit()
-$title: The Title object
-$dbkey: The DB key
-
 'UndeleteShowRevision': called when showing a revision in Special:Undelete
 $title: title object related to the revision
 $rev: revision (object) that will be viewed
index 57d6fea..ea2b197 100644 (file)
@@ -2102,17 +2102,13 @@ class Title {
                        return false;
                }
                
-               # Hooks can reject titles by returning false
-               if(!wfRunHooks('TitleSecureAndSplit', array( $this, &$dbkey )))
-                       return false;
-               
                # Fill fields
                $this->mDbkeyform = $dbkey;
                $this->mUrlform = wfUrlencode( $dbkey );
 
                $this->mTextform = str_replace( '_', ' ', $dbkey );
-               
-               return true; 
+
+               return true;
        }
 
        /**