From: Legoktm Date: Sat, 9 Aug 2014 00:29:43 +0000 (+0000) Subject: Revert "Pass a real IContextSource to ProtectedTitlesPager" X-Git-Tag: 1.31.0-rc.0~14509 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=8bb6f0c465daaeef82c2046443098a0efd4d6f6f;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) );