From: Aaron Schulz Date: Wed, 18 Jul 2007 08:49:24 +0000 (+0000) Subject: *Decrappify inefficient hook/link update scheme for this extension X-Git-Tag: 1.31.0-rc.0~52035 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=ba2e9b1f4fc0f2436ccd02cebf8b106892d106d0;p=lhc%2Fweb%2Fwiklou.git *Decrappify inefficient hook/link update scheme for this extension --- 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() {