Apply $wgContLang-based flip logic to site and user modules too. I swear we did this...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 11 Feb 2011 09:27:02 +0000 (09:27 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 11 Feb 2011 09:27:02 +0000 (09:27 +0000)
includes/resourceloader/ResourceLoaderSiteModule.php
includes/resourceloader/ResourceLoaderUserModule.php

index 977d16b..d68cc0b 100644 (file)
@@ -60,4 +60,10 @@ class ResourceLoaderSiteModule extends ResourceLoaderWikiModule {
        public function getGroup() {
                return 'site';
        }
+       
+       public function getFlip( $context ) {
+               global $wgContLang;
+
+               return $wgContLang->getDir() !== $context->getDirection();
+       }
 }
index f2413fd..f5482fb 100644 (file)
@@ -48,4 +48,10 @@ class ResourceLoaderUserModule extends ResourceLoaderWikiModule {
        public function getGroup() {
                return 'user';
        }
+       
+       public function getFlip( $context ) {
+               global $wgContLang;
+
+               return $wgContLang->getDir() !== $context->getDirection();
+       }
 }