X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSkinLegacy.php;h=3b5d84359dbf23cfb73c55eb1d6b1e60091f4792;hb=5ce6ddebb4290124ddd875f4b02e1152c5a69019;hp=29c4450b7106cb9e455a802bfadb91de0ca319b2;hpb=2d03eedf8aa584ce3c3ec62373b618699831dbe3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SkinLegacy.php b/includes/SkinLegacy.php index 29c4450b71..3b5d84359d 100644 --- a/includes/SkinLegacy.php +++ b/includes/SkinLegacy.php @@ -54,6 +54,12 @@ class SkinLegacy extends SkinTemplate { return 0; } $q = $wgUser->getOption( 'quickbar', 0 ); + if( $q == 5 ) { + # 5 is the default, which chooses the setting + # depending on the directionality of your interface language + global $wgLang; + return $wgLang->isRTL() ? 2 : 1; + } return $q; }