Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_String.php |
— | — | @@ -94,8 +94,6 @@ |
95 | 95 | */ |
96 | 96 | protected function getAbbValue($linked) { |
97 | 97 | $len = mb_strlen($this->m_value); |
98 | | - $starttag = ($this->m_typeid=='_cod')?'<pre>':''; |
99 | | - $endtag = ($this->m_typeid=='_cod')?'</pre>':''; |
100 | 98 | if ( ($len > 255) && ($this->m_typeid != '_cod') ) { |
101 | 99 | if ( ($linked === NULL)||($linked === false) ) { |
102 | 100 | return mb_substr($this->m_value, 0, 42) . ' <span class="smwwarning">…</span> ' . mb_substr($this->m_value, $len - 42); |
— | — | @@ -103,7 +101,7 @@ |
104 | 102 | smwfRequireHeadItem(SMW_HEADER_TOOLTIP); |
105 | 103 | return mb_substr($this->m_value, 0, 42) . ' <span class="smwttpersist"> … <span class="smwttcontent">' . $this->m_value . '</span></span> ' . mb_substr($this->m_value, $len - 42); |
106 | 104 | } |
107 | | - } elseif ($len > 255) { |
| 105 | + } elseif ($this->m_typeid == '_cod') { |
108 | 106 | return $this->getCodeDisplay($this->m_value,true); |
109 | 107 | } else { |
110 | 108 | return $this->m_value; |