r84153 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84152‎ | r84153 | r84154 >
Date:05:30, 17 March 2011
Author:yaron
Status:deferred
Tags:
Comment:
One more parameter added to SFTemplateField::createTemplateText() - for now, always just set it to null
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateClass.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_CreateTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateClass.php
@@ -77,7 +77,7 @@
7878 }
7979
8080 // create the template, and save it
81 - $full_text = SFTemplateField::createTemplateText( $template_name, $fields, $category_name, '', '', '' );
 81+ $full_text = SFTemplateField::createTemplateText( $template_name, $fields, null, $category_name, null, null, null );
8282 $template_title = Title::makeTitleSafe( NS_TEMPLATE, $template_name );
8383 $template_article = new Article( $template_title );
8484 $edit_summary = '';
Index: trunk/extensions/SemanticForms/specials/SF_CreateTemplate.php
@@ -138,7 +138,7 @@
139139 // redirect to wiki interface
140140 $wgOut->setArticleBodyOnly( true );
141141 $title = Title::makeTitleSafe( NS_TEMPLATE, $template_name );
142 - $full_text = SFTemplateField::createTemplateText( $template_name, $fields, $category, $aggregating_property, $aggregation_label, $template_format );
 142+ $full_text = SFTemplateField::createTemplateText( $template_name, $fields, null, $category, $aggregating_property, $aggregation_label, $template_format );
143143 $text = SFUtils::printRedirectForm( $title, $full_text, "", $save_page, $preview_page, false, false, false, null, null );
144144 $wgOut->addHTML( $text );
145145 return;