Index: trunk/extensions/DataTransfer/specials/DT_ViewXML.php |
— | — | @@ -79,7 +79,11 @@ |
80 | 80 | } else { |
81 | 81 | $groupings = array(); |
82 | 82 | $store = smwfGetStore(); |
83 | | - $grouping_prop = Title::makeTitle(SMW_NS_PROPERTY, $xml_grouping_prop); |
| 83 | + // handling changed in SMW 1.4 |
| 84 | + if (class_exists('SMWPropertyValue')) |
| 85 | + $grouping_prop = SMWPropertyValue::makeProperty($xml_grouping_prop); |
| 86 | + else |
| 87 | + $grouping_prop = Title::newFromText($xml_grouping_prop, SMW_NS_PROPERTY); |
84 | 88 | $grouped_props = $store->getAllPropertySubjects($grouping_prop); |
85 | 89 | foreach ($grouped_props as $grouped_prop) { |
86 | 90 | // the type of $grouped_prop depends on the version of SMW |