X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWikiMap.php;h=dca0f32697b0f72794751a8cb286f275c617b34c;hb=d820cd4dae43d4ed9347e7bb7ab1e0a857e57f86;hp=325831eef0ab35fc3f037a59c412d077452c8096;hpb=ecaa5e87af254096793e3b6dd3aee7df0ec4e4f0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WikiMap.php b/includes/WikiMap.php index 325831eef0..dca0f32697 100644 --- a/includes/WikiMap.php +++ b/includes/WikiMap.php @@ -55,16 +55,16 @@ class WikiMap { return null; } $server = $wgConf->get( 'wgServer', $wikiID, $major, - array( 'lang' => $minor, 'site' => $major ) ); + [ 'lang' => $minor, 'site' => $major ] ); $canonicalServer = $wgConf->get( 'wgCanonicalServer', $wikiID, $major, - array( 'lang' => $minor, 'site' => $major ) ); + [ 'lang' => $minor, 'site' => $major ] ); if ( $canonicalServer === false || $canonicalServer === null ) { $canonicalServer = $server; } $path = $wgConf->get( 'wgArticlePath', $wikiID, $major, - array( 'lang' => $minor, 'site' => $major ) ); + [ 'lang' => $minor, 'site' => $major ] ); return new WikiReference( $canonicalServer, $path, $server ); }