Index: trunk/phase3/includes/resourceloader/ResourceLoaderUserOptionsModule.php |
— | — | @@ -111,16 +111,6 @@ |
112 | 112 | return array(); |
113 | 113 | } |
114 | 114 | |
115 | | - /** |
116 | | - * @param $context ResourceLoaderContext |
117 | | - * @return bool |
118 | | - */ |
119 | | - public function getFlip( $context ) { |
120 | | - global $wgContLang; |
121 | | - |
122 | | - return $wgContLang->getDir() !== $context->getDirection(); |
123 | | - } |
124 | | - |
125 | 115 | public function getGroup() { |
126 | 116 | return 'private'; |
127 | 117 | } |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderFileModule.php |
— | — | @@ -513,4 +513,13 @@ |
514 | 514 | $style, $dir, $remoteDir, true |
515 | 515 | ); |
516 | 516 | } |
| 517 | + |
| 518 | + /** |
| 519 | + * Get whether CSS for this module should be flipped |
| 520 | + * @param $context ResourceLoaderContext |
| 521 | + * @return bool |
| 522 | + */ |
| 523 | + public function getFlip( $context ) { |
| 524 | + return $context->getDirection() === 'rtl'; |
| 525 | + } |
517 | 526 | } |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderModule.php |
— | — | @@ -106,12 +106,13 @@ |
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
110 | | - * Get whether CSS for this module should be flipped |
111 | 110 | * @param $context ResourceLoaderContext |
112 | 111 | * @return bool |
113 | 112 | */ |
114 | 113 | public function getFlip( $context ) { |
115 | | - return $context->getDirection() === 'rtl'; |
| 114 | + global $wgContLang; |
| 115 | + |
| 116 | + return $wgContLang->getDir() !== $context->getDirection(); |
116 | 117 | } |
117 | 118 | |
118 | 119 | /** |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php |
— | — | @@ -226,16 +226,6 @@ |
227 | 227 | } |
228 | 228 | return $this->modifiedTime[$hash] = $time; |
229 | 229 | } |
230 | | - |
231 | | - /** |
232 | | - * @param $context ResourceLoaderContext |
233 | | - * @return bool |
234 | | - */ |
235 | | - public function getFlip( $context ) { |
236 | | - global $wgContLang; |
237 | | - |
238 | | - return $wgContLang->getDir() !== $context->getDirection(); |
239 | | - } |
240 | 230 | |
241 | 231 | /* Methods */ |
242 | 232 | |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderWikiModule.php |
— | — | @@ -131,17 +131,7 @@ |
132 | 132 | public function isKnownEmpty( ResourceLoaderContext $context ) { |
133 | 133 | return count( $this->getTitleMtimes( $context ) ) == 0; |
134 | 134 | } |
135 | | - |
136 | | - /** |
137 | | - * @param $context ResourceLoaderContext |
138 | | - * @return bool |
139 | | - */ |
140 | | - public function getFlip( $context ) { |
141 | | - global $wgContLang; |
142 | 135 | |
143 | | - return $wgContLang->getDir() !== $context->getDirection(); |
144 | | - } |
145 | | - |
146 | 136 | /** |
147 | 137 | * Get the modification times of all titles that would be loaded for |
148 | 138 | * a given context. |