Fix PageHistoryBeforeList hook
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 5 Dec 2011 16:15:05 +0000 (16:15 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 5 Dec 2011 16:15:05 +0000 (16:15 +0000)
Following r100534 refactoring, it was using an incorrect variable.

includes/actions/HistoryAction.php

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