http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88105
Revision: 88105
Author: jeroendedauw
Date: 2011-05-14 16:44:48 +0000 (Sat, 14 May 2011)
Log Message:
-----------
follow up to changes in smw
Modified Paths:
--------------
trunk/extensions/SemanticWatchlist/includes/SWL_ChangeSet.php
Modified: trunk/extensions/SemanticWatchlist/includes/SWL_ChangeSet.php
===================================================================
--- trunk/extensions/SemanticWatchlist/includes/SWL_ChangeSet.php
2011-05-14 16:44:18 UTC (rev 88104)
+++ trunk/extensions/SemanticWatchlist/includes/SWL_ChangeSet.php
2011-05-14 16:44:48 UTC (rev 88105)
@@ -69,12 +69,13 @@
foreach ( $changes as $change ) {
$property = SMWDIProperty::doUnserialize(
$change->change_property, '__pro' );
+ $diType = SMWDataValueFactory::getDataItemId(
$property->findPropertyTypeID() );
$changeSet->addChange(
$property,
new SMWPropertyChange( // TODO: directly create
the DI, no need to get it via a DV...
- is_null( $change->change_old_value ) ?
null : SMWDataValueFactory::newTypeIdValue( $property->findPropertyTypeID(),
$change->change_old_value )->getDataItem(),
- is_null( $change->change_new_value ) ?
null : SMWDataValueFactory::newTypeIdValue( $property->findPropertyTypeID(),
$change->change_new_value )->getDataItem()
+ is_null( $change->change_old_value ) ?
null : SMWDataItem::unserializeDataItem( $diType, $change->change_old_value ),
+ is_null( $change->change_new_value ) ?
null : SMWDataItem::unserializeDataItem( $diType, $change->change_new_value )
)
);
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs