r24845 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24844‎ | r24845 | r24846 >
Date:22:52, 15 August 2007
Author:aaron
Status:old
Tags:
Comment:
Tweak ArticleUpdateBeforeRedirect hook a tad
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -334,6 +334,7 @@
335335
336336 'ArticleUpdateBeforeRedirect': After a page is updated (usually on save), before the user is redirected back to the page
337337 &$article: the article
 338+&$sectionanchor: The section anchor link (e.g. "#overview" )
338339 &$extraq: Extra query parameters which can be added via hooked functions
339340
340341 'AuthPluginSetup': update or replace authentication plugin object ($wgAuth)
Index: trunk/phase3/includes/Article.php
@@ -1254,7 +1254,7 @@
12551255 }
12561256
12571257 $extraq = ''; // Give extensions a chance to modify URL query on update
1258 - wfRunHooks( 'ArticleUpdateBeforeRedirect', array( $this, &$extraq ) );
 1258+ wfRunHooks( 'ArticleUpdateBeforeRedirect', array($this,&$sectionanchor,&$extraq) );
12591259
12601260 $this->doRedirect( $this->isRedirect( $text ), $sectionanchor, $extraq );
12611261 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r24866Merged revisions 24755-24865 via svnmerge from...david23:08, 16 August 2007

Status & tagging log