Index: trunk/extensions/SemanticForms/specials/SF_CreateProperty.php |
— | — | @@ -25,15 +25,8 @@ |
26 | 26 | |
27 | 27 | function createPropertyText($property_type, $default_form, $allowed_values_str) { |
28 | 28 | global $smwgContLang; |
29 | | - |
30 | | - // handling of special property labels changed in SMW 1.4 |
31 | | - if (method_exists($smwgContLang, 'getPropertyLabels')) { |
32 | | - $prop_labels = $smwgContLang->getPropertyLabels(); |
33 | | - $type_tag = "[[{$prop_labels['_TYPE']}::$property_type]]"; |
34 | | - } else { |
35 | | - $spec_props = $smwgContLang->getSpecialPropertiesArray(); |
36 | | - $type_tag = "[[{$spec_props[SMW_SP_HAS_TYPE]}::$property_type]]"; |
37 | | - } |
| 29 | + $prop_labels = $smwgContLang->getPropertyLabels(); |
| 30 | + $type_tag = "[[{$prop_labels['_TYPE']}::$property_type]]"; |
38 | 31 | $text = wfMsgForContent('sf_property_isproperty', $type_tag); |
39 | 32 | if ($default_form != '') { |
40 | 33 | global $sfgContLang; |