From 8bb6f0c465daaeef82c2046443098a0efd4d6f6f Mon Sep 17 00:00:00 2001 From: Legoktm Date: Sat, 9 Aug 2014 00:29:43 +0000 Subject: [PATCH] Revert "Pass a real IContextSource to ProtectedTitlesPager" Turns out the first parameter is actually supposed to be the SpecialPage instance. This reverts commit bfe3fb637eae69817ca9c4b1b6027a77d31a921b. Change-Id: I7605ef60c7ab10a3d164204620714cc68576f7e2 --- includes/specials/SpecialProtectedtitles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialProtectedtitles.php b/includes/specials/SpecialProtectedtitles.php index b84540ce6a..a40da87dac 100644 --- a/includes/specials/SpecialProtectedtitles.php +++ b/includes/specials/SpecialProtectedtitles.php @@ -50,7 +50,7 @@ class SpecialProtectedtitles extends SpecialPage { $size = $request->getIntOrNull( 'size' ); $NS = $request->getIntOrNull( 'namespace' ); - $pager = new ProtectedTitlesPager( $this->getContext(), array(), $type, $level, $NS, $sizetype, $size ); + $pager = new ProtectedTitlesPager( $this, array(), $type, $level, $NS, $sizetype, $size ); $this->getOutput()->addHTML( $this->showOptions( $NS, $type, $level ) ); -- 2.20.1