Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php |
— | — | @@ -367,10 +367,10 @@ |
368 | 368 | foreach ($res->getPrintRequests() as $pr) { |
369 | 369 | if ( ($pr->getMode() == SMW_PRINT_PROP) && ($pr->getTypeID() == '_dat') ) { |
370 | 370 | if ( ($this->m_tlend == '') && ($this->m_tlstart != '') && |
371 | | - ($this->m_tlstart != $pr->getTitle()->getText()) ) { |
372 | | - $this->m_tlend = $pr->getTitle()->getText(); |
373 | | - } elseif ( ($this->m_tlstart == '') && ($this->m_tlend != $pr->getTitle()->getText()) ) { |
374 | | - $this->m_tlstart = $pr->getTitle()->getText(); |
| 371 | + ($this->m_tlstart != $pr->getTitle()->getDBKey()) ) { |
| 372 | + $this->m_tlend = $pr->getTitle()->getDBKey(); |
| 373 | + } elseif ( ($this->m_tlstart == '') && ($this->m_tlend != $pr->getTitle()->getDBKey()) ) { |
| 374 | + $this->m_tlstart = $pr->getTitle()->getDBKey(); |
375 | 375 | } |
376 | 376 | } |
377 | 377 | } |
— | — | @@ -413,7 +413,7 @@ |
414 | 414 | } |
415 | 415 | // is this a start date? |
416 | 416 | if ( ($pr->getMode() == SMW_PRINT_PROP) && |
417 | | - ($pr->getTitle()->getText() == $this->m_tlstart) ) { |
| 417 | + ($pr->getTitle()->getDBKey() == $this->m_tlstart) ) { |
418 | 418 | //FIXME: Timeline scripts should support XSD format explicitly. They |
419 | 419 | //currently seem to implement iso8601 which deviates from XSD in cases. |
420 | 420 | //NOTE: We can assume $object to be an SMWDataValue in this case. |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | } |
425 | 425 | // is this the end date? |
426 | 426 | if ( ($pr->getMode() == SMW_PRINT_PROP) && |
427 | | - ($pr->getTitle()->getText() == $this->m_tlend) ) { |
| 427 | + ($pr->getTitle()->getDBKey() == $this->m_tlend) ) { |
428 | 428 | //NOTE: We can assume $object to be an SMWDataValue in this case. |
429 | 429 | $curmeta .= '<span class="smwtlend">' . $object->getXSDValue() . '</span>'; |
430 | 430 | } |