r53680 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53679‎ | r53680 | r53681 >
Date:17:35, 23 July 2009
Author:yaron
Status:deferred
Tags:
Comment:
Replaced 'float' and 'int' with just 'number', reflecting SMW change from a while ago
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormField.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormField.inc
@@ -96,8 +96,7 @@
9797 $code_type = array_key_exists('_cod', $datatypeLabels) ? $datatypeLabels['_cod'] : 'code';
9898 $url_type = $datatypeLabels['_uri'];
9999 $email_type = $datatypeLabels['_ema'];
100 - $float_type = $datatypeLabels['_num'];
101 - $int_type = $datatypeLabels['_num'];
 100+ $number_type = $datatypeLabels['_num'];
102101 $bool_type = $datatypeLabels['_boo'];
103102 $date_type = $datatypeLabels['_dat'];
104103 $enum_type = 'enumeration'; // not a real type
@@ -107,8 +106,7 @@
108107 // the field type and whether this field will contain multiple
109108 // values
110109 if ($semantic_type == $string_type ||
111 - $semantic_type == $float_type ||
112 - $semantic_type == $int_type ||
 110+ $semantic_type == $number_type ||
113111 $semantic_type == $url_type ||
114112 $semantic_type == $email_type) {
115113 if ($is_list) {

Status & tagging log