From 0552353f1f23d6d831c761db726666ebc57ede09 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Sun, 23 Jan 2011 14:34:19 +0000 Subject: [PATCH] Follow-up per r80813 CR --- includes/parser/CoreParserFunctions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 { -- 2.20.1