if ( !$including ) {
if ( $context->getRequest()->getText( 'sort', 'img_date' ) == 'img_date' ) {
- $this->mDefaultDirection = true;
+ $this->mDefaultDirection = IndexPager::DIR_ASCENDING;
} else {
- $this->mDefaultDirection = false;
+ $this->mDefaultDirection = IndexPager::DIR_DESCENDING;
}
} else {
- $this->mDefaultDirection = true;
+ $this->mDefaultDirection = IndexPager::DIR_ASCENDING;
}
parent::__construct( $context );
$form = new HTMLForm( $fields, $this->getContext() );
$form->setMethod( 'get' );
+ $form->setTitle( $this->getTitle() );
$form->setId( 'mw-listfiles-form' );
$form->setWrapperLegendMsg( 'listfiles' );
$form->setSubmitTextMsg( 'table_pager_limit_submit' );