Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php |
— | — | @@ -330,10 +330,15 @@ |
331 | 331 | $params = func_get_args(); |
332 | 332 | array_shift( $params ); // We already know the $parser ... |
333 | 333 | |
334 | | - // first param should be a standalone property name |
| 334 | + // First param should be a standalone property name. |
335 | 335 | $objToPagePropName = array_shift( $params ); |
336 | 336 | |
337 | | - $results = SMWParserExtensions::getDatesForRecurringEvent( $params ); |
| 337 | + // The location of this function changed in SMW 1.5.3 |
| 338 | + if ( class_exists( 'SMWSetRecurringEvent' ) ) { |
| 339 | + $results = SMWSetRecurringEvent::getDatesForRecurringEvent( $params ); |
| 340 | + } else { |
| 341 | + $results = SMWParserExtensions::getDatesForRecurringEvent( $params ); |
| 342 | + } |
338 | 343 | if ( $results == null ) { |
339 | 344 | return null; |
340 | 345 | } |