r23223 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23222‎ | r23223 | r23224 >
Date:14:38, 22 June 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
typo in list printer disabled template-based formatting
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php
@@ -184,7 +184,7 @@
185185 $this->mSep = htmlspecialchars(str_replace('_',' ',$params['sep']));
186186 }
187187 if (array_key_exists('template', $params)) {
188 - $this->mSep = $params['template'];
 188+ $this->mTemplate = $params['template'];
189189 }
190190 }
191191
@@ -348,7 +348,7 @@
349349
350350 if ( !$eventline && ($this->m_tlstart == '') ) { // seek defaults
351351 foreach ($res->getPrintRequests() as $pr) {
352 - if ( ($pr->getMode() == SMW_PRINT_ATTS) && ($pr->getDatavalue()->getTypeID() == 'datetime') ) {
 352+ if ( ($pr->getMode() == SMW_PRINT_ATTS) && ($pr->getTypeID() == 'datetime') ) {
353353 if ( ($this->m_tlend == '') && ($this->m_tlstart != '') &&
354354 ($this->m_tlstart != $pr->getTitle()->getText()) ) {
355355 $this->m_tlend = $pr->getTitle()->getText();
@@ -442,7 +442,7 @@
443443 $curdata .= $header . $objectlabel;
444444 $output = true;
445445 }
446 - if ($eventline && ($pr->getMode() == SMW_PRINT_ATTS) && ($pr->getDatavalue()->getTypeID() == 'datetime') && ('' != $pr->getLabel()) && ($pr->getTitle()->getText() != $this->m_tlstart) && ($pr->getTitle()->getText() != $this->m_tlend) ) {
 446+ if ($eventline && ($pr->getMode() == SMW_PRINT_ATTS) && ($pr->getTypeID() == 'datetime') && ('' != $pr->getLabel()) && ($pr->getTitle()->getText() != $this->m_tlstart) && ($pr->getTitle()->getText() != $this->m_tlend) ) {
447447 $events[] = array($object->getXSDValue(), $pr->getLabel(), $object->getNumericValue());
448448 }
449449 $first_value = false;

Status & tagging log