Changing OutputPage param to a Context param in PageHistoryBeforeList
authorKaldari <rkaldari@wikimedia.org>
Wed, 13 Mar 2013 16:54:23 +0000 (09:54 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 13 Mar 2013 21:06:39 +0000 (21:06 +0000)
Change-Id: I348b449043fefba181e28486a07c4aa761bcef24

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

index 2054eda..3670cbe 100644 (file)
@@ -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 <li> is added to a history line.
 $row: the revision row for this line
index 56b02e9..f2e61a5 100644 (file)
@@ -185,7 +185,7 @@ class HistoryAction extends FormlessAction {
                        '</fieldset></form>'
                );
 
-               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 );