Pass a real IContextSource to ProtectedTitlesPager
authorKunal Mehta <legoktm@gmail.com>
Mon, 4 Aug 2014 00:29:27 +0000 (17:29 -0700)
committerKunal Mehta <legoktm@gmail.com>
Mon, 4 Aug 2014 00:29:27 +0000 (17:29 -0700)
Change-Id: I4ed191bddb70bb7c0b7cc234862d5a73d1f2d0a5

includes/specials/SpecialProtectedtitles.php

index cb6ec3c..b377d0e 100644 (file)
@@ -50,7 +50,7 @@ class SpecialProtectedtitles extends SpecialPage {
                $size = $request->getIntOrNull( 'size' );
                $NS = $request->getIntOrNull( 'namespace' );
 
-               $pager = new ProtectedTitlesPager( $this, array(), $type, $level, $NS, $sizetype, $size );
+               $pager = new ProtectedTitlesPager( $this->getContext(), array(), $type, $level, $NS, $sizetype, $size );
 
                $this->getOutput()->addHTML( $this->showOptions( $NS, $type, $level ) );