jenkins-bot has submitted this change and it was merged.
Change subject: Changing OutputPage param to a Context param in
PageHistoryBeforeList
......................................................................
Changing OutputPage param to a Context param in PageHistoryBeforeList
Change-Id: I348b449043fefba181e28486a07c4aa761bcef24
---
M docs/hooks.txt
M includes/actions/HistoryAction.php
2 files changed, 2 insertions(+), 2 deletions(-)
Approvals:
IAlex: Looks good to me, approved
jenkins-bot: Verified
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 2054eda..3670cbe 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -1678,7 +1678,7 @@
'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
diff --git a/includes/actions/HistoryAction.php
b/includes/actions/HistoryAction.php
index 56b02e9..f2e61a5 100644
--- a/includes/actions/HistoryAction.php
+++ b/includes/actions/HistoryAction.php
@@ -185,7 +185,7 @@
'</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 );
--
To view, visit https://gerrit.wikimedia.org/r/53603
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I348b449043fefba181e28486a07c4aa761bcef24
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Bsitu <[email protected]>
Gerrit-Reviewer: IAlex <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits