r60201 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60200‎ | r60201 | r60202 >
Date:05:01, 18 December 2009
Author:yaron
Status:deferred
Tags:
Comment:
Removed support for SMW <1.4
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateProperty.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateProperty.php
@@ -25,15 +25,8 @@
2626
2727 function createPropertyText($property_type, $default_form, $allowed_values_str) {
2828 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]]";
3831 $text = wfMsgForContent('sf_property_isproperty', $type_tag);
3932 if ($default_form != '') {
4033 global $sfgContLang;

Follow-up revisions

RevisionCommit summaryAuthorDate
r91056Follow-up to r60201 - finished removing support for SMW < 1.4yaron05:42, 29 June 2011

Status & tagging log