r24273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24272‎ | r24273 | r24274 >
Date:15:36, 19 July 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Escape wiki links with ":"
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DV_WikiPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_WikiPage.php
@@ -65,7 +65,7 @@
6666 if ( ($linked === NULL) || ($linked === false) || (!$this->isValid()) ) {
6767 return $this->m_caption;
6868 } else {
69 - return '[[' . $this->m_prefixedtext . '|' . $this->m_caption . ']]';
 69+ return '[[:' . $this->m_prefixedtext . '|' . $this->m_caption . ']]';
7070 }
7171 }
7272
@@ -84,7 +84,7 @@
8585 if ( ($linked === NULL) || ($linked === false) ) {
8686 return $this->m_prefixedtext;
8787 } else {
88 - return '[[' . $this->m_prefixedtext . '|' . $this->m_textform . ']]';
 88+ return '[[:' . $this->m_prefixedtext . '|' . $this->m_textform . ']]';
8989 }
9090 }
9191

Status & tagging log