r65409 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65408‎ | r65409 | r65410 >
Date:18:37, 21 April 2010
Author:kipcool
Status:deferred
Tags:
Comment:
spaces to replace with backspace in title before urlencode
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/type.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/type.php
@@ -27,7 +27,8 @@
2828
2929 global $wgArticlePath;
3030
31 - $url = str_replace( "$1", urlencode( $nameSpace . ':' . $title ), $wgArticlePath );
 31+ $titleNoSpace = str_replace( " ", "_", $title ) ;
 32+ $url = str_replace( "$1", $nameSpace . ':' . urlencode( $titleNoSpace ), $wgArticlePath );
3233
3334 if ( $usedc ) {
3435 $dc = wdGetDataSetContext();

Status & tagging log