Merge "Make HTMLForm::formatErrors non-static to can parse message in context"
authorLegoktm <legoktm.wikipedia@gmail.com>
Fri, 19 Dec 2014 16:59:27 +0000 (16:59 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 19 Dec 2014 16:59:27 +0000 (16:59 +0000)
1  2 
includes/specials/SpecialBlock.php

@@@ -105,7 -105,7 +105,7 @@@ class SpecialBlock extends FormSpecialP
  
                # Don't need to do anything if the form has been posted
                if ( !$this->getRequest()->wasPosted() && $this->preErrors ) {
-                       $s = HTMLForm::formatErrors( $this->preErrors );
+                       $s = $form->formatErrors( $this->preErrors );
                        if ( $s ) {
                                $form->addHeaderText( Html::rawElement(
                                        'div',
                        }
  
                        list( $show, $value ) = explode( ':', $option );
 -                      $a[htmlspecialchars( $show )] = htmlspecialchars( $value );
 +                      $a[$show] = $value;
                }
  
                return $a;