Index: trunk/extensions/SemanticForms/includes/SF_TemplateField.inc |
— | — | @@ -55,17 +55,10 @@ |
56 | 56 | if ($proptitle === NULL) |
57 | 57 | return; |
58 | 58 | $store = smwfGetStore(); |
59 | | - if (class_exists('SMWPropertyValue')) { |
60 | | - $types = $store->getPropertyValues($proptitle, SMWPropertyValue::makeUserProperty("Has type")); |
61 | | - // this returns an array of objects |
62 | | - $allowed_values = $store->getPropertyValues($proptitle, SMWPropertyValue::makeUserProperty("Allows value")); |
63 | | - $label_formats = $store->getPropertyValues($proptitle, SMWPropertyValue::makeUserProperty("Has field label format")); |
64 | | - } else { |
65 | | - $types = $store->getSpecialValues($proptitle, SMW_SP_HAS_TYPE); |
66 | | - // this returns an array of objects |
67 | | - $allowed_values = $store->getSpecialValues($proptitle, SMW_SP_POSSIBLE_VALUE); |
68 | | - $label_formats = $store->getSpecialValues($proptitle, SF_SP_HAS_FIELD_LABEL_FORMAT); |
69 | | - } |
| 59 | + $types = $store->getPropertyValues($proptitle, SMWPropertyValue::makeUserProperty("Has type")); |
| 60 | + // this returns an array of objects |
| 61 | + $allowed_values = $store->getPropertyValues($proptitle, SMWPropertyValue::makeUserProperty("Allows value")); |
| 62 | + $label_formats = $store->getPropertyValues($proptitle, SMWPropertyValue::makeUserProperty("Has field label format")); |
70 | 63 | // TODO - need handling for the case of more than one type |
71 | 64 | if (count($types) > 0) |
72 | 65 | $this->field_type = $types[0]->getWikiValue(); |