From: Robert Stojnić Date: Thu, 12 Oct 2006 20:45:49 +0000 (+0000) Subject: Fixed bug when $2 is present in the URL. X-Git-Tag: 1.31.0-rc.0~55519 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=9e2d0d2dc66fa82787f1dff861c2b7ed30a7b3f5;p=lhc%2Fweb%2Fwiklou.git Fixed bug when $2 is present in the URL. --- diff --git a/includes/Title.php b/includes/Title.php index 6d06e3720d..615d92f824 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -850,8 +850,9 @@ class Title { else $variantArticlePath = $wgVariantArticlePath; - $url = str_replace( '$1', $dbkey, $variantArticlePath ); - $url = str_replace( '$2', urlencode( $variant ), $url ); + $url = str_replace( '$2', urlencode( $variant ), $variantArticlePath ); + $url = str_replace( '$1', $dbkey, $url ); + } else $url = str_replace( '$1', $dbkey, $wgArticlePath );