Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -333,6 +333,7 @@ |
334 | 334 | static function pad( $string, $length, $padding = '0', $direction = STR_PAD_RIGHT ) { |
335 | 335 | $lengthOfPadding = mb_strlen( $padding ); |
336 | 336 | if ( $lengthOfPadding == 0 ) return $string; |
| 337 | + if ( $length < mb_strlen( $string ) ) return $string; |
337 | 338 | |
338 | 339 | # The remaining length to add counts down to 0 as padding is added |
339 | 340 | $length = min( $length, 500 ) - mb_strlen( $string ); |