Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | $this->mSep = htmlspecialchars(str_replace('_',' ',$params['sep'])); |
186 | 186 | } |
187 | 187 | if (array_key_exists('template', $params)) { |
188 | | - $this->mSep = $params['template']; |
| 188 | + $this->mTemplate = $params['template']; |
189 | 189 | } |
190 | 190 | } |
191 | 191 | |
— | — | @@ -348,7 +348,7 @@ |
349 | 349 | |
350 | 350 | if ( !$eventline && ($this->m_tlstart == '') ) { // seek defaults |
351 | 351 | 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') ) { |
353 | 353 | if ( ($this->m_tlend == '') && ($this->m_tlstart != '') && |
354 | 354 | ($this->m_tlstart != $pr->getTitle()->getText()) ) { |
355 | 355 | $this->m_tlend = $pr->getTitle()->getText(); |
— | — | @@ -442,7 +442,7 @@ |
443 | 443 | $curdata .= $header . $objectlabel; |
444 | 444 | $output = true; |
445 | 445 | } |
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) ) { |
447 | 447 | $events[] = array($object->getXSDValue(), $pr->getLabel(), $object->getNumericValue()); |
448 | 448 | } |
449 | 449 | $first_value = false; |