Index: trunk/extensions/SemanticForms/specials/SF_CreateProperty.php |
— | — | @@ -49,13 +49,8 @@ |
50 | 50 | foreach ( $allowed_values_array as $i => $value ) { |
51 | 51 | // replace beep back with comma, trim |
52 | 52 | $value = str_replace( "\a", $sfgListSeparator, trim( $value ) ); |
53 | | - if ( method_exists( $smwgContLang, 'getPropertyLabels' ) ) { |
54 | | - $prop_labels = $smwgContLang->getPropertyLabels(); |
55 | | - $text .= "\n* [[" . $prop_labels['_PVAL'] . "::$value]]"; |
56 | | - } else { |
57 | | - $spec_props = $smwgContLang->getSpecialPropertiesArray(); |
58 | | - $text .= "\n* [[" . $spec_props[SMW_SP_POSSIBLE_VALUE] . "::$value]]"; |
59 | | - } |
| 53 | + $prop_labels = $smwgContLang->getPropertyLabels(); |
| 54 | + $text .= "\n* [[" . $prop_labels['_PVAL'] . "::$value]]"; |
60 | 55 | } |
61 | 56 | } |
62 | 57 | return $text; |