From 024ea7857455b8a3f94c0fad65b1e753fae629af Mon Sep 17 00:00:00 2001 From: Kaldari Date: Tue, 12 Mar 2013 16:27:16 -0700 Subject: [PATCH] Adding output parameter to PageHistoryBeforeList hook This will allow us to easily add other RL modules to the page Change-Id: I2ec00d44e37298ef91ab428759bda037072b0120 --- docs/hooks.txt | 1 + includes/actions/HistoryAction.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index d892b7930c..2054eda878 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1678,6 +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 '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 e64e3d21c6..56b02e9dd5 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -185,7 +185,7 @@ class HistoryAction extends FormlessAction { '' ); - wfRunHooks( 'PageHistoryBeforeList', array( &$this->page ) ); + wfRunHooks( 'PageHistoryBeforeList', array( &$this->page, &$out ) ); // Create and output the list. $pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds ); -- 2.20.1