r26338 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26337‎ | r26338 | r26339 >
Date:00:49, 3 October 2007
Author:yaron
Status:old
Tags:
Comment:
Calls to setSemanticData() on template parse set "is_list" parameter
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormClasses.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormClasses.inc
@@ -87,7 +87,7 @@
8888 if (! in_array($field_name, $field_names_array)) {
8989 $field_names_array[] = $field_name;
9090 $template_field = SFTemplateField::newWithValues($field_name, ucfirst(strtolower($field_name)));
91 - $template_field->setSemanticData($semantic_field_name, $is_relation);
 91+ $template_field->setSemanticData($semantic_field_name, $is_relation, false);
9292 $template_fields[] = $template_field;
9393 }
9494 }
@@ -103,7 +103,7 @@
104104 if (! in_array($field_name, $field_names_array)) {
105105 $field_names_array[] = $field_name;
106106 $template_field = SFTemplateField::newWithValues($field_name, ucfirst(strtolower($field_name)));
107 - $template_field->setSemanticData($semantic_field_name, $is_relation);
 107+ $template_field->setSemanticData($semantic_field_name, $is_relation, true);
108108 $template_fields[] = $template_field;
109109 }
110110 }

Status & tagging log