http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89611
Revision: 89611
Author: yaron
Date: 2011-06-06 21:22:31 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
Fix for SMW 1.6 handling
Modified Paths:
--------------
trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
Modified:
trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
===================================================================
--- trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
2011-06-06 21:10:42 UTC (rev 89610)
+++ trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
2011-06-06 21:22:31 UTC (rev 89611)
@@ -20,7 +20,7 @@
public function addPropertyAndValue( $propName, $value ) {
// SMW 1.6+
if ( class_exists( 'SMWDIProperty' ) ) {
- $property = new SMWDIProperty( $propName );
+ $property = SMWDIProperty::newFromUserLabel( $propName
);
} else {
$property = SMWPropertyValue::makeUserProperty(
$propName );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs