protected $mCurrentRow;
public function __construct( IContextSource $context = null, LinkRenderer $linkRenderer = null ) {
+ if ( $context ) {
+ $this->setContext( $context );
+ }
+
$this->mSort = $this->getRequest()->getText( 'sort' );
if ( !array_key_exists( $this->mSort, $this->getFieldNames() )
|| !$this->isFieldSortable( $this->mSort )
} /* Else leave it at whatever the class default is */
// Parent constructor needs mSort set, so we call it last
- parent::__construct( $context, $linkRenderer );
+ parent::__construct( null, $linkRenderer );
}
/**