Index: trunk/phase3/includes/Article.php |
— | — | @@ -269,13 +269,16 @@ |
270 | 270 | 'page_random', |
271 | 271 | 'page_touched', |
272 | 272 | 'page_latest', |
273 | | - 'page_len' ) ; |
274 | | - wfRunHooks( 'ArticlePageDataBefore', array( &$this , &$fields ) ) ; |
275 | | - $row = $dbr->selectRow( 'page', |
| 273 | + 'page_len', |
| 274 | + ); |
| 275 | + wfRunHooks( 'ArticlePageDataBefore', array( &$this, &$fields ) ); |
| 276 | + $row = $dbr->selectRow( |
| 277 | + 'page', |
276 | 278 | $fields, |
277 | 279 | $conditions, |
278 | | - 'Article::pageData' ); |
279 | | - wfRunHooks( 'ArticlePageDataAfter', array( &$this , &$row ) ) ; |
| 280 | + __METHOD__ |
| 281 | + ); |
| 282 | + wfRunHooks( 'ArticlePageDataAfter', array( &$this, &$row ) ); |
280 | 283 | return $row ; |
281 | 284 | } |
282 | 285 | |
— | — | @@ -1251,7 +1254,7 @@ |
1252 | 1255 | } |
1253 | 1256 | |
1254 | 1257 | $extraq = ''; // Give extensions a chance to modify URL query on update |
1255 | | - wfRunHooks( 'ArticleUpdateBeforeRedirect', array($this,&$extraq) ); |
| 1258 | + wfRunHooks( 'ArticleUpdateBeforeRedirect', array( $this, &$extraq ) ); |
1256 | 1259 | |
1257 | 1260 | $this->doRedirect( $this->isRedirect( $text ), $sectionanchor, $extraq ); |
1258 | 1261 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -175,6 +175,8 @@ |
176 | 176 | * Show edit count in user preferences |
177 | 177 | * Improved support for audio/video extensions |
178 | 178 | * (bug 10937) Distinguish overwritten files in upload log |
| 179 | +* Introduce 'ArticleUpdateBeforeRedirect' hook; see docs/hooks.txt for more |
| 180 | + information |
179 | 181 | |
180 | 182 | == Bugfixes since 1.10 == |
181 | 183 | |