From c5233396cd283e0ea5bcc6ea53ced5bcb237c7e7 Mon Sep 17 00:00:00 2001 From: Kaldari Date: Wed, 13 Mar 2013 09:54:23 -0700 Subject: [PATCH] Changing OutputPage param to a Context param in PageHistoryBeforeList Change-Id: I348b449043fefba181e28486a07c4aa761bcef24 --- docs/hooks.txt | 2 +- includes/actions/HistoryAction.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 2054eda878..3670cbe5a1 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 56b02e9dd5..f2e61a5c04 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 ); -- 2.20.1