Revert "Pass a real IContextSource to ProtectedTitlesPager"
authorLegoktm <legoktm.wikipedia@gmail.com>
Sat, 9 Aug 2014 00:29:43 +0000 (00:29 +0000)
committerReedy <reedy@wikimedia.org>
Sat, 9 Aug 2014 00:30:05 +0000 (00:30 +0000)
Turns out the first parameter is actually supposed to be the SpecialPage instance.

This reverts commit bfe3fb637eae69817ca9c4b1b6027a77d31a921b.

Change-Id: I7605ef60c7ab10a3d164204620714cc68576f7e2

includes/specials/SpecialProtectedtitles.php

index b84540c..a40da87 100644 (file)
@@ -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 ) );