Handle invalid grouppage on Special:Statistics
[lhc/web/wiklou.git] / includes / specials / SpecialNewpages.php
index 9dad5a2..994a2e5 100644 (file)
@@ -228,7 +228,7 @@ class SpecialNewpages extends IncludableSpecialPage {
                        ),
                        'nsinvert' => array(
                                'type' => 'check',
-                               'name' => 'nsinvert',
+                               'name' => 'invert',
                                'label-message' => 'invert',
                                'default' => $nsinvert,
                                'tooltip' => $this->msg( 'tooltip-invert' )->text(),
@@ -333,12 +333,12 @@ class SpecialNewpages extends IncludableSpecialPage {
                $hist = Html::rawElement( 'span', array( 'class' => 'mw-newpages-history' ),
                        $this->msg( 'parentheses' )->rawParams( $histLink )->escaped() );
 
-               $length = Html::element(
+               $length = Html::rawElement(
                        'span',
                        array( 'class' => 'mw-newpages-length' ),
-                       $this->msg( 'brackets' )->params( $this->msg( 'nbytes' )
-                               ->numParams( $result->length )->text()
-                       )
+                       $this->msg( 'brackets' )->rawParams(
+                               $this->msg( 'nbytes' )->numParams( $result->length )->escaped()
+                       )->escaped()
                );
 
                $ulink = Linker::revUserTools( $rev );