Replace get{Local,Full,Link,Canonical}URL's $variant argument with a secondary $query...
[lhc/web/wiklou.git] / includes / SkinTemplate.php
index cd2b387..b7f3e25 100644 (file)
@@ -1009,7 +1009,7 @@ class SkinTemplate extends Skin {
                                                $content_navigation['variants'][] = array(
                                                        'class' => ( $code == $preferred ) ? 'selected' : false,
                                                        'text' => $varname,
-                                                       'href' => $title->getLocalURL( '', $code )
+                                                       'href' => $title->getLocalURL( array( 'variant' => $code ) )
                                                );
                                        }
                                }