X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialCategories.php;h=5314f63489604cf980ce0fb5e5839f5c25816f92;hb=21463af0d8db7d7ea8e0e87e48e75cd3acb832b7;hp=564579a8bb4134a1c4c2d2a445df0a2d1605c707;hpb=e53c515578be49fd950c7ced2728b12447c0e8ef;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialCategories.php b/includes/specials/SpecialCategories.php index 564579a8bb..5314f63489 100644 --- a/includes/specials/SpecialCategories.php +++ b/includes/specials/SpecialCategories.php @@ -78,7 +78,7 @@ class SpecialCategories extends SpecialPage { $cap->doQuery(); $this->getOutput()->addHTML( - Html::openElement( 'div', array( 'class' => 'mw-spcontent' ) ) . + Html::openElement( 'div', [ 'class' => 'mw-spcontent' ] ) . $this->msg( 'categoriespagetext', $cap->getNumRows() )->parseAsBlock() . $cap->getStartForm( $from ) . $cap->getNavigationBar() . @@ -125,12 +125,12 @@ class CategoryPager extends AlphabeticPager { } function getQueryInfo() { - return array( - 'tables' => array( 'category' ), - 'fields' => array( 'cat_title', 'cat_pages' ), - 'conds' => array( 'cat_pages > 0' ), - 'options' => array( 'USE INDEX' => 'cat_title' ), - ); + return [ + 'tables' => [ 'category' ], + 'fields' => [ 'cat_title', 'cat_pages' ], + 'conds' => [ 'cat_pages > 0' ], + 'options' => [ 'USE INDEX' => 'cat_title' ], + ]; } function getIndexField() { @@ -182,17 +182,17 @@ class CategoryPager extends AlphabeticPager { public function getStartForm( $from ) { return Xml::tags( 'form', - array( 'method' => 'get', 'action' => wfScript() ), + [ 'method' => 'get', 'action' => wfScript() ], Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . Xml::fieldset( $this->msg( 'categories' )->text(), Xml::inputLabel( $this->msg( 'categoriesfrom' )->text(), - 'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline' ) ) . + 'from', 'from', 20, $from, [ 'class' => 'mw-ui-input-inline' ] ) . ' ' . Html::submitButton( $this->msg( 'categories-submit' )->text(), - array(), array( 'mw-ui-progressive' ) + [], [ 'mw-ui-progressive' ] ) ) );