Merge "Special:PagesWithProp: Distinguish content from interface"
[lhc/web/wiklou.git] / includes / specials / SpecialPagesWithProp.php
index 61aa4d2..e22b42a 100644 (file)
@@ -55,6 +55,7 @@ class SpecialPagesWithProp extends QueryPage {
                        __METHOD__,
                        array( 'DISTINCT', 'ORDER BY' => 'pp_propname' )
                );
+               $propnames = array();
                foreach ( $res as $row ) {
                        $propnames[$row->pp_propname] = $row->pp_propname;
                }
@@ -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 {