r16974 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16973‎ | r16974 | r16975 >
Date:20:45, 12 October 2006
Author:rainman
Status:old
Tags:
Comment:

Fixed bug when $2 is present in the URL.
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -850,8 +850,9 @@
851851 else
852852 $variantArticlePath = $wgVariantArticlePath;
853853
854 - $url = str_replace( '$1', $dbkey, $variantArticlePath );
855 - $url = str_replace( '$2', urlencode( $variant ), $url );
 854+ $url = str_replace( '$2', urlencode( $variant ), $variantArticlePath );
 855+ $url = str_replace( '$1', $dbkey, $url );
 856+
856857 }
857858 else
858859 $url = str_replace( '$1', $dbkey, $wgArticlePath );