From: Krinkle Date: Sun, 23 Jan 2011 14:34:19 +0000 (+0000) Subject: Follow-up per r80813 CR X-Git-Tag: 1.31.0-rc.0~32407 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=0552353f1f23d6d831c761db726666ebc57ede09;p=lhc%2Fweb%2Fwiklou.git Follow-up per r80813 CR --- diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index b0f2f2586b..6b999b5e05 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -619,15 +619,17 @@ class CoreParserFunctions { public static function filepath( $parser, $name='', $argA='', $argB='' ) { $file = wfFindFile( $name ); $size = ''; + $argA_int = intval( $argA ); + $argB_int = intval( $argB ); - if ( intval( $argB ) > 0 ) { + if ( $argB_int > 0 ) { // {{filepath: | option | size }} - $size = intval( $argB ); + $size = $argB_int; $option = $argA; - } elseif ( intval( $argA ) > 0 ) { + } elseif ( $argA_int > 0 ) { // {{filepath: | size [|option] }} - $size = intval( $argA ); + $size = $argA_int; $option = $argB; } else {