Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_URI.php |
— | — | @@ -133,6 +133,11 @@ |
134 | 134 | $this->m_caption = $this->m_value; |
135 | 135 | if ($this->m_mode == SMW_URI_MODE_EMAIL) { |
136 | 136 | $this->m_url = $this->m_value; |
| 137 | + if (strpos($this->m_value,'mailto:') === 0) { // this check is just to be wary |
| 138 | + $this->m_caption = substr($this->m_value, 7); |
| 139 | + } else { // this case is only for backwards compatibility/repair; may vanish at some point |
| 140 | + $this->m_url = 'mailto:' . $this->m_value; |
| 141 | + } |
137 | 142 | } else { |
138 | 143 | $parts = explode(':', $this->m_value, 2); // try to split "schema:rest" |
139 | 144 | global $wgUrlProtocols; |