Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php |
— | — | @@ -479,13 +479,11 @@ |
480 | 480 | |
481 | 481 | public function getShortWikiText($linked = NULL) { |
482 | 482 | $this->unstub(); |
483 | | - if ($this->isValid() && ($linked !== NULL) && ($linked !== false)) { |
484 | | - $this->makePrintoutValue(); |
485 | | - SMWOutputs::requireHeadItem(SMW_HEADER_TOOLTIP); |
486 | | - return '<span class="smwttinline">' . $this->m_caption . '<span class="smwttcontent">' . |
487 | | - $this->m_gregvalue . '</span></span>'; |
488 | | - } else { |
| 483 | + if ($this->m_caption !== false) { |
489 | 484 | return $this->m_caption; |
| 485 | + } else { |
| 486 | + $this->makePrintoutValue(); |
| 487 | + return $this->m_gregvalue; |
490 | 488 | } |
491 | 489 | } |
492 | 490 | |