From 35eb9481a2e5eaa433b2726adc04e863f018cf40 Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Mon, 22 Sep 2014 15:13:30 -0700 Subject: [PATCH] Special:Categories: Use mediawiki.ui classes and fix layout Bug: 71146 Change-Id: I96c684f6f7b352afd368624d814761f359e7b551 --- includes/specials/SpecialCategories.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialCategories.php b/includes/specials/SpecialCategories.php index 95f9efd256..371cd9f028 100644 --- a/includes/specials/SpecialCategories.php +++ b/includes/specials/SpecialCategories.php @@ -180,6 +180,10 @@ class CategoryPager extends AlphabeticPager { } public function getStartForm( $from ) { + $submitClassName = ''; + if ( $this->getConfig( 'UseMediaWikiUIEverywhere' ) ) { + $submitClassName = 'mw-ui-button mw-ui-progressive'; + } return Xml::tags( 'form', array( 'method' => 'get', 'action' => wfScript() ), @@ -188,9 +192,11 @@ class CategoryPager extends AlphabeticPager { $this->msg( 'categories' )->text(), Xml::inputLabel( $this->msg( 'categoriesfrom' )->text(), - 'from', 'from', 20, $from ) . + 'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline') ) . ' ' . - Xml::submitButton( $this->msg( 'allpagessubmit' )->text() + Xml::submitButton( + $this->msg( 'allpagessubmit' )->text(), + array( 'class' => $submitClassName ) ) ) ); -- 2.20.1