r42656 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42655‎ | r42656 | r42657 >
Date:14:52, 27 October 2008
Author:yaron
Status:old
Tags:
Comment:
Added support for new property handling in SMW 1.4
Modified paths:
  • /trunk/extensions/DataTransfer/specials/DT_ViewXML.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataTransfer/specials/DT_ViewXML.php
@@ -79,7 +79,11 @@
8080 } else {
8181 $groupings = array();
8282 $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);
8488 $grouped_props = $store->getAllPropertySubjects($grouping_prop);
8589 foreach ($grouped_props as $grouped_prop) {
8690 // the type of $grouped_prop depends on the version of SMW

Status & tagging log