r90422 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90421‎ | r90422 | r90423 >
Date:00:09, 20 June 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added parsing of 'default filename' parameter (now two params get parsed - 'default' and 'default filename')
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -757,6 +757,8 @@
758758 $semantic_property = $sub_components[1];
759759 } elseif ( $sub_components[0] == 'default filename' ) {
760760 $default_filename = str_replace( '<page name>', $page_name, $sub_components[1] );
 761+ // Parse value, so default filename can include parser functions.
 762+ $default_value = $wgParser->recursiveTagParse( $default_filename );
761763 $field_args['default filename'] = $default_filename;
762764 }
763765

Follow-up revisions

RevisionCommit summaryAuthorDate
r90459Fix for r90422 - actually got parsing of "default filename" to work nowyaron12:10, 20 June 2011