Index: trunk/extensions/SemanticForms/includes/SF_FormField.php |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | $text .= '<p>' . wfMsg( 'sf_createform_fieldprop', $prop_link_text, |
172 | 172 | SFUtils::linkText( SMW_NS_TYPE, $template_field->field_type ) ) . "</p>\n"; |
173 | 173 | } |
174 | | - // if it's not a semantic field - don't add any text |
| 174 | + // If it's not a semantic field - don't add any text. |
175 | 175 | $form_label_text = wfMsg( 'sf_createform_formlabel' ); |
176 | 176 | $field_label = $template_field->label; |
177 | 177 | $input_type_text = wfMsg( 'sf_createform_inputtype' ); |
— | — | @@ -257,10 +257,10 @@ |
258 | 258 | $other_args['is_list'] = ( $this->is_list || $this->template_field->is_list ); |
259 | 259 | if ( $this->template_field->semantic_property != '' && ! array_key_exists( 'semantic_property', $other_args ) ) |
260 | 260 | $other_args['semantic_property'] = $this->template_field->semantic_property; |
261 | | - // if autocompletion hasn't already been hardcoded in the form, |
| 261 | + // If autocompletion hasn't already been hardcoded in the form, |
262 | 262 | // and it's a property of type page, or a property of another |
263 | 263 | // type with 'autocomplete' specified, set the necessary |
264 | | - // parameters |
| 264 | + // parameters. |
265 | 265 | if ( ! array_key_exists( 'autocompletion source', $other_args ) ) { |
266 | 266 | if ( $this->template_field->propertyIsOfType( '_wpg' ) ) { |
267 | 267 | $other_args['autocompletion source'] = $this->template_field->semantic_property; |
— | — | @@ -270,9 +270,9 @@ |
271 | 271 | $other_args['autocomplete field type'] = 'attribute'; |
272 | 272 | } |
273 | 273 | } |
274 | | - // now merge in the default values set by SFFormPrinter, if |
| 274 | + // Now merge in the default values set by SFFormPrinter, if |
275 | 275 | // there were any - put the default values first, so that if |
276 | | - // there's a conflict they'll be overridden |
| 276 | + // there's a conflict they'll be overridden. |
277 | 277 | if ( $default_args != null ) |
278 | 278 | $other_args = array_merge( $default_args, $other_args ); |
279 | 279 | return $other_args; |