Index: trunk/extensions/SemanticForms/specials/SF_CreateProperty.php |
— | — | @@ -34,8 +34,13 @@ |
35 | 35 | $text = wfMsgForContent('sf_property_isrelation'); |
36 | 36 | } else { |
37 | 37 | global $smwgContLang; |
38 | | - $specprops = $smwgContLang->getSpecialPropertiesArray(); |
39 | | - $type_tag = "[[{$specprops[SMW_SP_HAS_TYPE]}::$property_type]]"; |
| 38 | + if (class_exists('SMWPropertyValue')) { |
| 39 | + $has_type_prop = SMWPropertyValue::makeUserProperty("Has type"); |
| 40 | + $type_tag = "[[{$has_type_prop->getWikiValue()}::$property_type]]"; |
| 41 | + } else { |
| 42 | + $specprops = $smwgContLang->getSpecialPropertiesArray(); |
| 43 | + $type_tag = "[[{$specprops[SMW_SP_HAS_TYPE]}::$property_type]]"; |
| 44 | + } |
40 | 45 | $text = wfMsgForContent('sf_property_isproperty', $type_tag); |
41 | 46 | if ($allowed_values_str != '') { |
42 | 47 | $text .= "\n\n" . wfMsgForContent('sf_property_allowedvals'); |