r99235 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99234‎ | r99235 | r99236 >
Date:19:07, 7 October 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added support for new 'query form at top' parameter to {{{info}}} tag
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -1345,6 +1345,13 @@
13461346 $source_page_matches_this_form = true;
13471347 } elseif ( $tag == 'includeonly free text' || $tag == 'onlyinclude free text' ) {
13481348 $onlyinclude_free_text = true;
 1349+ } elseif ( $tag == 'query form at top' ) {
 1350+ // TODO - this should be made a field of
 1351+ // some non-static class that actually
 1352+ // prints the form, instead of requiring
 1353+ // a global variable.
 1354+ global $sfgRunQueryFormAtTop;
 1355+ $sfgRunQueryFormAtTop = true;
13491356 }
13501357 }
13511358 $section = substr_replace( $section, '', $brackets_loc, $brackets_end_loc + 3 - $brackets_loc );