Fixed bug when $2 is present in the URL.
authorRobert Stojnić <rainman@users.mediawiki.org>
Thu, 12 Oct 2006 20:45:49 +0000 (20:45 +0000)
committerRobert Stojnić <rainman@users.mediawiki.org>
Thu, 12 Oct 2006 20:45:49 +0000 (20:45 +0000)
includes/Title.php

index 6d06e37..615d92f 100644 (file)
@@ -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 );