Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -334,6 +334,7 @@ |
335 | 335 | |
336 | 336 | 'ArticleUpdateBeforeRedirect': After a page is updated (usually on save), before the user is redirected back to the page |
337 | 337 | &$article: the article |
| 338 | +&$sectionanchor: The section anchor link (e.g. "#overview" ) |
338 | 339 | &$extraq: Extra query parameters which can be added via hooked functions |
339 | 340 | |
340 | 341 | 'AuthPluginSetup': update or replace authentication plugin object ($wgAuth) |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -1254,7 +1254,7 @@ |
1255 | 1255 | } |
1256 | 1256 | |
1257 | 1257 | $extraq = ''; // Give extensions a chance to modify URL query on update |
1258 | | - wfRunHooks( 'ArticleUpdateBeforeRedirect', array( $this, &$extraq ) ); |
| 1258 | + wfRunHooks( 'ArticleUpdateBeforeRedirect', array($this,&$sectionanchor,&$extraq) ); |
1259 | 1259 | |
1260 | 1260 | $this->doRedirect( $this->isRedirect( $text ), $sectionanchor, $extraq ); |
1261 | 1261 | } |