r24598 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24597‎ | r24598 | r24599 >
Date:01:30, 5 August 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Bugfix in timeline printout: type-ids had changed ...
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php
@@ -362,7 +362,7 @@
363363
364364 if ( !$eventline && ($this->m_tlstart == '') ) { // seek defaults
365365 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') ) {
367367 if ( ($this->m_tlend == '') && ($this->m_tlstart != '') &&
368368 ($this->m_tlstart != $pr->getTitle()->getText()) ) {
369369 $this->m_tlend = $pr->getTitle()->getText();
@@ -456,7 +456,7 @@
457457 $curdata .= $header . $objectlabel;
458458 $output = true;
459459 }
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) ) {
461461 $events[] = array($object->getXSDValue(), $pr->getLabel(), $object->getNumericValue());
462462 }
463463 $first_value = false;

Status & tagging log