http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88341
Revision: 88341
Author: jeroendedauw
Date: 2011-05-17 18:55:09 +0000 (Tue, 17 May 2011)
Log Message:
-----------
fixed obvious fail
Modified Paths:
--------------
trunk/extensions/SemanticMediaWiki/includes/SMW_ChangeSet.php
Modified: trunk/extensions/SemanticMediaWiki/includes/SMW_ChangeSet.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/SMW_ChangeSet.php
2011-05-17 18:41:07 UTC (rev 88340)
+++ trunk/extensions/SemanticMediaWiki/includes/SMW_ChangeSet.php
2011-05-17 18:55:09 UTC (rev 88341)
@@ -255,23 +255,21 @@
*
* @return array of SMWPropertyChange
*/
- public function getAllPropertyChanges( SMWDIProperty $proprety ) {
+ public function getAllPropertyChanges( SMWDIProperty $property ) {
$changes = array();
- foreach ( $this->getAllProperties() as /* SMWDIProperty */
$property ) {
- foreach ( $this->changes->getPropertyChanges( $property
) as /* SMWPropertyChange */ $change ) {
- $changes[] = $change;
- }
-
- foreach ( $this->insertions->getPropertyValues(
$property ) as /* SMWDataItem */ $dataItem ) {
- $changes[] = new SMWPropertyChange( null,
$dataItem );
- }
-
- foreach ( $this->deletions->getPropertyValues(
$property ) as /* SMWDataItem */ $dataItem ) {
- $changes[] = new SMWPropertyChange( $dataItem,
null );
- }
+ foreach ( $this->changes->getPropertyChanges( $property ) as /*
SMWPropertyChange */ $change ) {
+ $changes[] = $change;
}
+ foreach ( $this->insertions->getPropertyValues( $property ) as
/* SMWDataItem */ $dataItem ) {
+ $changes[] = new SMWPropertyChange( null, $dataItem );
+ }
+
+ foreach ( $this->deletions->getPropertyValues( $property ) as
/* SMWDataItem */ $dataItem ) {
+ $changes[] = new SMWPropertyChange( $dataItem, null );
+ }
+
return $changes;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs