r60325 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60324‎ | r60325 | r60326 >
Date:16:38, 23 December 2009
Author:yaron
Status:deferred
Tags:
Comment:
Removed support for SMW < 1.4
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc
@@ -156,7 +156,7 @@
157157 $create_pages_property = SMWPropertyValue::makeProperty('_SF_CP_BACKUP');
158158 $incoming_properties = $store->getInProperties($value);
159159 foreach ($incoming_properties as $property) {
160 - $property_name = SFUtils::getPropertyName($property);
 160+ $property_name = $property->getWikiValue();
161161 $property_title = Title::makeTitleSafe(SMW_NS_PROPERTY, $property_name);
162162 $res = $store->getPropertyValues($property_title, $create_pages_property);
163163 if (count($res) > 0) {
@@ -194,7 +194,7 @@
195195 $value = SMWDataValueFactory::newTypeIDValue('_wpg', $title_text);
196196 $incoming_properties = $store->getInProperties($value);
197197 foreach ($incoming_properties as $property) {
198 - $property_title = SFUtils::getPropertyName($property);
 198+ $property_title = $property->getWikiValue();
199199 if ($add_data_link = self::getAddDataLinkForPage($title, $property_title, SMW_NS_PROPERTY)) {
200200 return $add_data_link;
201201 }

Status & tagging log