Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -176,6 +176,7 @@ |
177 | 177 | // let '\n' represent newlines - chances that anyone will |
178 | 178 | // actually need the '\n' literal are small |
179 | 179 | $delimiter = str_replace('\n', "\n", $delimiter); |
| 180 | + $new_delimiter = str_replace('\n', "\n", $new_delimiter); |
180 | 181 | $values_array = explode($parser->mStripState->unstripNoWiki($delimiter), $value); |
181 | 182 | $results = array(); |
182 | 183 | foreach ($values_array as $cur_value) { |
— | — | @@ -204,6 +205,7 @@ |
205 | 206 | $delimiter = $parser->mStripState->unstripNoWiki($delimiter); |
206 | 207 | # let '\n' represent newlines |
207 | 208 | $delimiter = str_replace('\n', "\n", $delimiter); |
| 209 | + $new_delimiter = str_replace('\n', "\n", $new_delimiter); |
208 | 210 | |
209 | 211 | $values_array = explode($delimiter, $value); |
210 | 212 | $results_array = array(); |
— | — | @@ -224,6 +226,7 @@ |
225 | 227 | static function renderArrayMapTemplate( &$parser, $value = '', $template = '', $delimiter = ',', $new_delimiter = ', ' ) { |
226 | 228 | # let '\n' represent newlines |
227 | 229 | $delimiter = str_replace('\n', "\n", $delimiter); |
| 230 | + $new_delimiter = str_replace('\n', "\n", $new_delimiter); |
228 | 231 | $values_array = explode($parser->mStripState->unstripNoWiki($delimiter), $value); |
229 | 232 | $results = array(); |
230 | 233 | $template = trim($template); |
— | — | @@ -252,6 +255,7 @@ |
253 | 256 | $delimiter = $parser->mStripState->unstripNoWiki($delimiter); |
254 | 257 | # let '\n' represent newlines |
255 | 258 | $delimiter = str_replace('\n', "\n", $delimiter); |
| 259 | + $new_delimiter = str_replace('\n', "\n", $new_delimiter); |
256 | 260 | |
257 | 261 | $values_array = explode($delimiter, $value); |
258 | 262 | $results_array = array(); |