r60140 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60139‎ | r60140 | r60141 >
Date:20:38, 16 December 2009
Author:yaron
Status:deferred
Tags:
Comment:
Fix to remove extra newline above #forminput display
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
@@ -185,7 +185,9 @@
186186 <input type="submit" value="$button_str"></p>
187187 </form>
188188 END;
189 - return array($str, 'noparse' => true, 'isHTML' => true);
 189+ // hack to remove newline from beginning of output, thanks to
 190+ // http://jimbojw.com/wiki/index.php?title=Raw_HTML_Output_from_a_MediaWiki_Parser_Function
 191+ return $parser->insertStripItem($str, $parser->mStripState);
190192 }
191193
192194 /**

Status & tagging log