diff --git a/docs/hooks.txt b/docs/hooks.txt index 2054eda8789..3670cbe5a1d 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1678,7 +1678,7 @@ $baseRevId: the rev ID (or false) this edit was based on 'PageHistoryBeforeList': When a history page list is about to be constructed. $article: the article that the history is loading for -$out: OutputPage object +$context: RequestContext object 'PageHistoryLineEnding' : Right before the end
  • is added to a history line. $row: the revision row for this line diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 56b02e9dd54..f2e61a5c04f 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -185,7 +185,7 @@ class HistoryAction extends FormlessAction { '' ); - wfRunHooks( 'PageHistoryBeforeList', array( &$this->page, &$out ) ); + wfRunHooks( 'PageHistoryBeforeList', array( &$this->page, $this->getContext() ) ); // Create and output the list. $pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds );