API: Improve list=random
[lhc/web/wiklou.git] / includes / specials / SpecialCategories.php
index 3367bd4..3a13b7e 100644 (file)
@@ -180,19 +180,19 @@ class CategoryPager extends AlphabeticPager {
        }
 
        public function getStartForm( $from ) {
-               global $wgScript;
-
                return Xml::tags(
                        'form',
-                       array( 'method' => 'get', 'action' => $wgScript ),
+                       array( '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 ) .
+                                               'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline' ) ) .
                                                ' ' .
-                                               Xml::submitButton( $this->msg( 'allpagessubmit' )->text()
+                                               Html::submitButton(
+                                                       $this->msg( 'allpagessubmit' )->text(),
+                                                       array(), array( 'mw-ui-progressive' )
                                                )
                                )
                );