Index: trunk/extensions/SemanticMediaWiki/RELEASE-NOTES |
— | — | @@ -9,6 +9,7 @@ |
10 | 10 | production until the actual release. |
11 | 11 | |
12 | 12 | * Fixed fatal error occurring for some invalid property definitions (bug 33652). |
| 13 | +* Fixed error in RSS when using creator or date parameters (bug 33721). |
13 | 14 | |
14 | 15 | == SMW 1.7.0.1 == |
15 | 16 | |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_RSSlink.php |
— | — | @@ -71,11 +71,11 @@ |
72 | 72 | // mechanism to add whatever you want :) |
73 | 73 | $req = $field->getPrintRequest(); |
74 | 74 | if ( strtolower( $req->getLabel() ) == 'creator' ) { |
75 | | - foreach ( $field->getContent() as $entry ) { |
| 75 | + while ( $entry = $field->getNextDataValue() ) { |
76 | 76 | $creators[] = $entry->getShortWikiText(); |
77 | 77 | } |
78 | 78 | } elseif ( ( strtolower( $req->getLabel() ) == 'date' ) && ( $req->getTypeID() == '_dat' ) ) { |
79 | | - foreach ( $field->getContent() as $entry ) { |
| 79 | + while ( $entry = $field->getNextDataValue() ) { |
80 | 80 | $dates[] = $entry->getXMLSchemaDate(); |
81 | 81 | } |
82 | 82 | } |