Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -619,15 +619,17 @@ |
620 | 620 | public static function filepath( $parser, $name='', $argA='', $argB='' ) { |
621 | 621 | $file = wfFindFile( $name ); |
622 | 622 | $size = ''; |
| 623 | + $argA_int = intval( $argA ); |
| 624 | + $argB_int = intval( $argB ); |
623 | 625 | |
624 | | - if ( intval( $argB ) > 0 ) { |
| 626 | + if ( $argB_int > 0 ) { |
625 | 627 | // {{filepath: | option | size }} |
626 | | - $size = intval( $argB ); |
| 628 | + $size = $argB_int; |
627 | 629 | $option = $argA; |
628 | 630 | |
629 | | - } elseif ( intval( $argA ) > 0 ) { |
| 631 | + } elseif ( $argA_int > 0 ) { |
630 | 632 | // {{filepath: | size [|option] }} |
631 | | - $size = intval( $argA ); |
| 633 | + $size = $argA_int; |
632 | 634 | $option = $argB; |
633 | 635 | |
634 | 636 | } else { |