Merge "Handle no pageids response field in MessagePoster factory"
[lhc/web/wiklou.git] / includes / specials / SpecialRandomInCategory.php
index b5c9e19..e21eaeb 100644 (file)
@@ -89,6 +89,10 @@ class SpecialRandomInCategory extends FormSpecialPage {
                return false;
        }
 
+       protected function alterForm( HTMLForm $form ) {
+               $form->setSubmitTextMsg( 'randomincategory-submit' );
+       }
+
        protected function setParameter( $par ) {
                // if subpage present, fake form submission
                $this->onSubmit( array( 'category' => $par ) );