From ba2e9b1f4fc0f2436ccd02cebf8b106892d106d0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 18 Jul 2007 08:49:24 +0000 Subject: [PATCH] *Decrappify inefficient hook/link update scheme for this extension --- docs/hooks.txt | 6 +++--- includes/LinksUpdate.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index fe1044e9c9..8777be87f2 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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 diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 78f356319b..9bcd9d67e6 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -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() { -- 2.20.1