Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -473,11 +473,6 @@ |
474 | 474 | static function pad( $string, $length, $padding = '0', $direction = STR_PAD_RIGHT ) { |
475 | 475 | $lengthOfPadding = mb_strlen( $padding ); |
476 | 476 | if ( $lengthOfPadding == 0 ) return $string; |
477 | | - |
478 | | - // Thwart attempts to use this function to truncate strings. |
479 | | - // We don't want people implementing ParserFunctions in template, |
480 | | - // for performance and usability reasons. |
481 | | - if ($lengthOfPadding > $length && $string == '') return $string; |
482 | 477 | |
483 | 478 | # The remaining length to add counts down to 0 as padding is added |
484 | 479 | $length = min( $length, 500 ) - mb_strlen( $string ); |