r41491 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41490‎ | r41491 | r41492 >
Date:15:36, 1 October 2008
Author:yaron
Status:old
Tags:
Comment:
Fixed errors introduced in last version
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
@@ -203,8 +203,8 @@
204204 # Set variables
205205 $value = isset($args[0]) ? trim($frame->expand($args[0])) : '';
206206 $delimiter = isset($args[1]) ? trim($frame->expand($args[1])) : ',';
207 - $var = isset($args[2]) ? trim($frame->expand($args[2])) : 'x';
208 - $formula = isset($args[3]) ? trim($frame->expand($args[3])) : 'x';
 207+ $var = isset($args[2]) ? trim($frame->expand($args[2], PPFrame::NO_ARGS | PPFrame::NO_TEMPLATES)) : 'x';
 208+ $formula = isset($args[3]) ? $args[3] : 'x';
209209 $new_delimiter = isset($args[4]) ? trim($frame->expand($args[4])) : ', ';
210210 # Unstrip some
211211 $delimiter = $parser->mStripState->unstripNoWiki($delimiter);

Status & tagging log