Index: trunk/extensions/SemanticForms/specials/SF_CreateCategory.php |
— | — | @@ -31,15 +31,7 @@ |
32 | 32 | } else { |
33 | 33 | global $sfgContLang; |
34 | 34 | $specprops = $sfgContLang->getPropertyLabels(); |
35 | | - // a simpler call is possible in SMW 1.4 and higher |
36 | | - if (class_exists('SMWPropertyValue')) { |
37 | | - $form_tag = "[[" . $specprops[SF_SP_HAS_DEFAULT_FORM] . "::$default_form]]"; |
38 | | - } else { |
39 | | - $namespace_labels = $sfgContLang->getNamespaces(); |
40 | | - $form_label = $namespace_labels[SF_NS_FORM]; |
41 | | - $form_tag = "[[" . $specprops[SF_SP_HAS_DEFAULT_FORM] . |
42 | | - "::$form_label:$default_form|$default_form]]"; |
43 | | - } |
| 35 | + $form_tag = "[[" . $specprops[SF_SP_HAS_DEFAULT_FORM] . "::$default_form]]"; |
44 | 36 | $text = wfMsgForContent('sf_category_hasdefaultform', $form_tag); |
45 | 37 | } |
46 | 38 | if ($parent_category != '') { |