Fix PageHistoryBeforeList hook
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 5 Dec 2011 10:56:56 +0000 (10:56 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 5 Dec 2011 10:56:56 +0000 (10:56 +0000)
Following r100534 refactoring, it was using an incorrect variable.
Use the new accessor instead.

includes/actions/HistoryAction.php

index ac35b0a..d64b333 100644 (file)
@@ -171,7 +171,7 @@ class HistoryAction extends FormlessAction {
                        '</fieldset></form>'
                );
 
-               wfRunHooks( 'PageHistoryBeforeList', array( &$this->article ) );
+               wfRunHooks( 'PageHistoryBeforeList', array( &$this->getArticle() ) );
 
                // Create and output the list.
                $pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds );