Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Bool.php |
— | — | @@ -70,6 +70,10 @@ |
71 | 71 | $this->m_falsecaption = htmlspecialchars(trim($captions[1])); |
72 | 72 | } // else ignore |
73 | 73 | } |
| 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; |
74 | 78 | } |
75 | 79 | |
76 | 80 | public function getShortWikiText($linked = NULL) { |