Index: branches/SerbianVariants/phase3/includes/Title.php |
— | — | @@ -876,9 +876,12 @@ |
877 | 877 | * @access public |
878 | 878 | */ |
879 | 879 | function getLocalVariantURL( $variant='' ) { |
880 | | - global $wgVariantArticlePath; |
| 880 | + global $wgVariantArticlePath,$wgScript; |
881 | 881 | if($variant=='') return $this->getLocalURL(); |
882 | 882 | |
| 883 | + if($wgVariantArticlePath==false) |
| 884 | + $wgVariantArticlePath = "$wgScript?title=$1&variant=$2"; |
| 885 | + |
883 | 886 | $dbkey = wfUrlencode( $this->getPrefixedDBkey() ); |
884 | 887 | $url = str_replace( '$1', $dbkey, $wgVariantArticlePath ); |
885 | 888 | $code = urlencode( $variant ); |
Index: branches/SerbianVariants/phase3/includes/DefaultSettings.php |
— | — | @@ -124,7 +124,7 @@ |
125 | 125 | $wgStyleDirectory = "{$IP}/skins"; |
126 | 126 | $wgStyleSheetPath = &$wgStylePath; |
127 | 127 | $wgArticlePath = "{$wgScript}?title=$1"; |
128 | | -$wgVariantArticlePath = "{$wgScript}?title=$1&variant=$2"; |
| 128 | +$wgVariantArticlePath = false; |
129 | 129 | $wgUploadPath = "{$wgScriptPath}/images"; |
130 | 130 | $wgUploadDirectory = "{$IP}/images"; |
131 | 131 | $wgHashedUploadDirectory = true; |
Index: branches/SerbianVariants/phase3/config/index.php |
— | — | @@ -1357,7 +1357,6 @@ |
1358 | 1358 | ## If using PHP as a CGI module, the ?title= style usually must be used. |
1359 | 1359 | {$pretty}\$wgArticlePath = \"\$wgScript/\$1\"; |
1360 | 1360 | {$ugly}\$wgArticlePath = \"\$wgScript?title=\$1\"; |
1361 | | -\$wgVariantArticlePath = \"\$wgScript?title=\$1&variant=\$2\"; |
1362 | 1361 | |
1363 | 1362 | \$wgStylePath = \"\$wgScriptPath/skins\"; |
1364 | 1363 | \$wgStyleDirectory = \"\$IP/skins\"; |