r62432 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62431‎ | r62432 | r62433 >
Date:14:31, 13 February 2010
Author:mkroetzsch
Status:deferred
Tags:
Comment:
do not show tooltips with historicla calendar models
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php
@@ -479,13 +479,11 @@
480480
481481 public function getShortWikiText($linked = NULL) {
482482 $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) {
489484 return $this->m_caption;
 485+ } else {
 486+ $this->makePrintoutValue();
 487+ return $this->m_gregvalue;
490488 }
491489 }
492490

Status & tagging log