Merge "Truncate super long SQL in DB error log lines (useful for blobs)"
[lhc/web/wiklou.git] / includes / specials / SpecialPagesWithProp.php
index 199c5cd..e22b42a 100644 (file)
@@ -42,6 +42,7 @@ class SpecialPagesWithProp extends QueryPage {
        function execute( $par ) {
                $this->setHeaders();
                $this->outputHeader();
+               $this->getOutput()->addModuleStyles( 'mediawiki.special.pagesWithProp' );
 
                $request = $this->getRequest();
                $propname = $request->getVal( 'propname', $par );
@@ -136,7 +137,7 @@ class SpecialPagesWithProp extends QueryPage {
                        if ( $isBinary || $isTooLong ) {
                                $message = $this
                                        ->msg( $isBinary ? 'pageswithprop-prophidden-binary' : 'pageswithprop-prophidden-long' )
-                                       ->numParams( round( $valueLength / 1024, 2 ) );
+                                       ->params( $this->getLanguage()->formatSize( $valueLength ) );
 
                                $propValue = Html::element( 'span', array( 'class' => 'prop-value-hidden' ), $message->text() );
                        } else {