Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php |
— | — | @@ -362,7 +362,7 @@ |
363 | 363 | |
364 | 364 | if ( !$eventline && ($this->m_tlstart == '') ) { // seek defaults |
365 | 365 | foreach ($res->getPrintRequests() as $pr) { |
366 | | - if ( ($pr->getMode() == SMW_PRINT_PROP) && ($pr->getTypeID() == 'datetime') ) { |
| 366 | + if ( ($pr->getMode() == SMW_PRINT_PROP) && ($pr->getTypeID() == '_dat') ) { |
367 | 367 | if ( ($this->m_tlend == '') && ($this->m_tlstart != '') && |
368 | 368 | ($this->m_tlstart != $pr->getTitle()->getText()) ) { |
369 | 369 | $this->m_tlend = $pr->getTitle()->getText(); |
— | — | @@ -456,7 +456,7 @@ |
457 | 457 | $curdata .= $header . $objectlabel; |
458 | 458 | $output = true; |
459 | 459 | } |
460 | | - if ($eventline && ($pr->getMode() == SMW_PRINT_PROP) && ($pr->getTypeID() == 'datetime') && ('' != $pr->getLabel()) && ($pr->getTitle()->getText() != $this->m_tlstart) && ($pr->getTitle()->getText() != $this->m_tlend) ) { |
| 460 | + if ($eventline && ($pr->getMode() == SMW_PRINT_PROP) && ($pr->getTypeID() == '_dat') && ('' != $pr->getLabel()) && ($pr->getTitle()->getText() != $this->m_tlstart) && ($pr->getTitle()->getText() != $this->m_tlend) ) { |
461 | 461 | $events[] = array($object->getXSDValue(), $pr->getLabel(), $object->getNumericValue()); |
462 | 462 | } |
463 | 463 | $first_value = false; |