From 3481db60c34eaf7e1f789dfcccf81db07b435fb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 3 Aug 2010 20:39:35 +0000 Subject: [PATCH] Follow up to r69185: add documentation for wfUILang() --- includes/GlobalFunctions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 8341be407d..c1ed33fa4b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -563,6 +563,13 @@ function wfGetLangObj( $langcode = false ) { return $wgContLang; } +/** + * Use this instead of $wgContLang, when working with user interface. + * User interface is currently hard coded according to wiki content language + * in many ways, especially regarding to text direction. There is lots stuff + * to fix, hence this function to keep the old behaviour unless the global + * $wgBetterDirectionality is enabled (or removed when everything works). + */ function wfUILang() { global $wgBetterDirectionality; return wfGetLangObj( $wgBetterDirectionality ? false: true ); -- 2.20.1