r93039 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93038‎ | r93039 | r93040 >
Date:04:04, 25 July 2011
Author:yaron
Status:deferred
Tags:
Comment:
SFTemplateField::create() now takes in four paramters
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateTemplate.php
@@ -167,9 +167,7 @@
168168 continue;
169169 list ( $field_field, $id ) = $var_elements;
170170 if ( $field_field == 'name' && $id != 'starter' ) {
171 - $field = SFTemplateField::create( $val, $wgRequest->getVal( 'label_' . $id ) );
172 - $field->semantic_property = $wgRequest->getVal( 'semantic_property_' . $id );
173 - $field->is_list = $wgRequest->getCheck( 'is_list_' . $id );
 171+ $field = SFTemplateField::create( $val, $wgRequest->getVal( 'label_' . $id ), $wgRequest->getVal( 'semantic_property_' . $id ), $wgRequest->getCheck( 'is_list_' . $id ) );
174172 $fields[] = $field;
175173 }
176174 }