r37110 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37109‎ | r37110 | r37111 >
Date:15:12, 5 July 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
fixed custom display for Type:Boolean
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Bool.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Bool.php
@@ -70,6 +70,10 @@
7171 $this->m_falsecaption = htmlspecialchars(trim($captions[1]));
7272 } // else ignore
7373 }
 74+ if ( ($formatstring != $this->m_outformat) && $this->isValid() && ($this->m_truecaption !== NULL) ) { // also adjust display
 75+ $this->m_caption = $this->m_stdcaption = ($this->m_value?$this->m_truecaption:$this->m_falsecaption);
 76+ }
 77+ $this->m_outformat = $formatstring;
7478 }
7579
7680 public function getShortWikiText($linked = NULL) {

Status & tagging log