Index: trunk/phase3/includes/resourceloader/ResourceLoaderSiteModule.php |
— | — | @@ -60,10 +60,4 @@ |
61 | 61 | public function getGroup() { |
62 | 62 | return 'site'; |
63 | 63 | } |
64 | | - |
65 | | - public function getFlip( $context ) { |
66 | | - global $wgContLang; |
67 | | - |
68 | | - return $wgContLang->getDir() !== $context->getDirection(); |
69 | | - } |
70 | 64 | } |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderUserGroupsModule.php |
— | — | @@ -52,10 +52,4 @@ |
53 | 53 | public function getGroup() { |
54 | 54 | return 'user'; |
55 | 55 | } |
56 | | - |
57 | | - public function getFlip( $context ) { |
58 | | - global $wgContLang; |
59 | | - |
60 | | - return $wgContLang->getDir() !== $context->getDirection(); |
61 | | - } |
62 | 56 | } |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderUserModule.php |
— | — | @@ -48,10 +48,4 @@ |
49 | 49 | public function getGroup() { |
50 | 50 | return 'user'; |
51 | 51 | } |
52 | | - |
53 | | - public function getFlip( $context ) { |
54 | | - global $wgContLang; |
55 | | - |
56 | | - return $wgContLang->getDir() !== $context->getDirection(); |
57 | | - } |
58 | 52 | } |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderModule.php |
— | — | @@ -108,6 +108,7 @@ |
109 | 109 | /** |
110 | 110 | * Get whether CSS for this module should be flipped |
111 | 111 | * @param $context ResourceLoaderContext |
| 112 | + * @return bool |
112 | 113 | */ |
113 | 114 | public function getFlip( $context ) { |
114 | 115 | return $context->getDirection() === 'rtl'; |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php |
— | — | @@ -217,6 +217,10 @@ |
218 | 218 | return $this->modifiedTime[$hash] = $time; |
219 | 219 | } |
220 | 220 | |
| 221 | + /** |
| 222 | + * @param $context ResourceLoaderContext |
| 223 | + * @return bool |
| 224 | + */ |
221 | 225 | public function getFlip( $context ) { |
222 | 226 | global $wgContLang; |
223 | 227 | |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderWikiModule.php |
— | — | @@ -145,4 +145,14 @@ |
146 | 146 | $this->modifiedTime[$hash] = $modifiedTime; |
147 | 147 | return $modifiedTime; |
148 | 148 | } |
| 149 | + |
| 150 | + /** |
| 151 | + * @param $context ResourceLoaderContext |
| 152 | + * @return bool |
| 153 | + */ |
| 154 | + public function getFlip( $context ) { |
| 155 | + global $wgContLang; |
| 156 | + |
| 157 | + return $wgContLang->getDir() !== $context->getDirection(); |
| 158 | + } |
149 | 159 | } |