*Decrappify inefficient hook/link update scheme for this extension
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 18 Jul 2007 08:49:24 +0000 (08:49 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 18 Jul 2007 08:49:24 +0000 (08:49 +0000)
docs/hooks.txt
includes/LinksUpdate.php

index fe1044e..8777be8 100644 (file)
@@ -469,6 +469,9 @@ $password: Desired password
 &$result: Set this and return false to override the internal checks
 $user: User the password is being validated for
 
+'LinksUpdateConstructed': At the end of LinksUpdate() is contruction.
+&$linksUpdate: the LinkUpdate object
+
 'LoginAuthenticateAudit': a login attempt for a valid user account either succeeded or failed.
                           No return data is accepted; this hook is for auditing only.
 $user: the User object being authenticated against
@@ -569,9 +572,6 @@ Alter the contents of $siteNotice to add to/alter the sitenotice/anonnotice.
 'SpecialContributionsBeforeMainOutput': Before the form on Special:Contributions
 $id: User identifier
 
-'TitleLinkUpdatesAfterCompletion': after Linker->doUpdate() is called
-&$title: title of the updated page
-
 'TitleMoveComplete': after moving an article (title)
 $old: old title
 $nt: new title
index 78f3563..9bcd9d6 100644 (file)
@@ -64,6 +64,8 @@ class LinksUpdate {
                }
 
                $this->mRecursive = $recursive;
+               
+               wfRunHooks( 'LinksUpdateConstructed', array( &$this ) );
        }
 
        /**
@@ -76,7 +78,6 @@ class LinksUpdate {
                } else {
                        $this->doIncrementalUpdate();
                }
-               wfRunHooks( 'TitleLinkUpdatesAfterCompletion', array( &$this->mTitle ) );
        }
 
        function doIncrementalUpdate() {