Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -563,6 +563,13 @@ |
564 | 564 | return $wgContLang; |
565 | 565 | } |
566 | 566 | |
| 567 | +/** |
| 568 | + * Use this instead of $wgContLang, when working with user interface. |
| 569 | + * User interface is currently hard coded according to wiki content language |
| 570 | + * in many ways, especially regarding to text direction. There is lots stuff |
| 571 | + * to fix, hence this function to keep the old behaviour unless the global |
| 572 | + * $wgBetterDirectionality is enabled (or removed when everything works). |
| 573 | + */ |
567 | 574 | function wfUILang() { |
568 | 575 | global $wgBetterDirectionality; |
569 | 576 | return wfGetLangObj( $wgBetterDirectionality ? false: true ); |