From: Antoine Musso Date: Mon, 5 Dec 2011 10:56:56 +0000 (+0000) Subject: Fix PageHistoryBeforeList hook X-Git-Tag: 1.31.0-rc.0~26177 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=00280ee21b74744c7e3622d9fdd29027ec713bb5;p=lhc%2Fweb%2Fwiklou.git Fix PageHistoryBeforeList hook Following r100534 refactoring, it was using an incorrect variable. Use the new accessor instead. --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index ac35b0aa19..d64b333140 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -171,7 +171,7 @@ class HistoryAction extends FormlessAction { '' ); - wfRunHooks( 'PageHistoryBeforeList', array( &$this->article ) ); + wfRunHooks( 'PageHistoryBeforeList', array( &$this->getArticle() ) ); // Create and output the list. $pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds );