Adding output parameter to PageHistoryBeforeList hook
authorKaldari <rkaldari@wikimedia.org>
Tue, 12 Mar 2013 23:27:16 +0000 (16:27 -0700)
committerKaldari <rkaldari@wikimedia.org>
Tue, 12 Mar 2013 23:27:16 +0000 (16:27 -0700)
This will allow us to easily add other RL modules to the page

Change-Id: I2ec00d44e37298ef91ab428759bda037072b0120

docs/hooks.txt
includes/actions/HistoryAction.php

index d892b79..2054eda 100644 (file)
@@ -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 <li> is added to a history line.
 $row: the revision row for this line
index e64e3d2..56b02e9 100644 (file)
@@ -185,7 +185,7 @@ class HistoryAction extends FormlessAction {
                        '</fieldset></form>'
                );
 
-               wfRunHooks( 'PageHistoryBeforeList', array( &$this->page ) );
+               wfRunHooks( 'PageHistoryBeforeList', array( &$this->page, &$out ) );
 
                // Create and output the list.
                $pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds );