r39955 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39954‎ | r39955 | r39956 >
Date:16:47, 25 August 2008
Author:yaron
Status:old
Tags:
Comment:
Fixed handling of #arraymaptemplate and other parser functions to work with
MediaWiki 1.12 and higher
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
@@ -132,7 +132,7 @@
133133 } else {
134134 $str = "<a href=\"$link_url\">$inLinkStr</a>";
135135 }
136 - return array($str, 'noparse' => 'true', 'isHTML' => 'true');
 136+ return array($str, 'noparse' => true, 'isHTML' => true);
137137 }
138138
139139 function sfRenderFormInput (&$parser, $inFormName = '', $inSize = '25', $inValue = '', $inButtonStr = '', $inQueryStr = '') {
@@ -168,7 +168,7 @@
169169 <input type="submit" value="$button_str"></p>
170170 </form>
171171 END;
172 - return array($str, 'noparse' => 'true', 'isHTML' => 'true');
 172+ return array($str, 'noparse' => true, 'isHTML' => true);
173173 }
174174
175175 /**
@@ -203,5 +203,5 @@
204204 $results[] = '{{'.$template.'|'.$cur_value.'}}';
205205 }
206206 }
207 - return implode($new_delimiter, $results);
 207+ return array(implode($new_delimiter, $results), 'noparse' => false, 'isHTML' => false);
208208 }

Status & tagging log