Merge "Move Title::isNamespaceProtected() to PermissionManager."
[lhc/web/wiklou.git] / includes / specials / pagers / ImageListPager.php
index d05694a..81b7808 100644 (file)
@@ -54,6 +54,7 @@ class ImageListPager extends TablePager {
                $including = false, $showAll = false
        ) {
                $this->setContext( $context );
+
                $this->mIncluding = $including;
                $this->mShowAll = $showAll;
 
@@ -95,7 +96,7 @@ class ImageListPager extends TablePager {
                        $this->mDefaultDirection = IndexPager::DIR_DESCENDING;
                }
 
-               parent::__construct( $context );
+               parent::__construct();
        }
 
        /**
@@ -437,7 +438,7 @@ class ImageListPager extends TablePager {
         */
        function formatValue( $field, $value ) {
                $services = MediaWikiServices::getInstance();
-               $linkRenderer = $services->getLinkRenderer();
+               $linkRenderer = $this->getLinkRenderer();
                switch ( $field ) {
                        case 'thumb':
                                $opt = [ 'time' => wfTimestamp( TS_MW, $this->mCurrentRow->img_timestamp ) ];