From be12d48c62cf4a8cedd1ad218549b1e6d2565149 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 10 Dec 2006 22:18:08 +1300 Subject: [PATCH] Ensure locale is set when using Basic Auth also. --- inc/BasicAuthSession.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/BasicAuthSession.php b/inc/BasicAuthSession.php index 82dcca41..a82a687a 100644 --- a/inc/BasicAuthSession.php +++ b/inc/BasicAuthSession.php @@ -140,6 +140,9 @@ class BasicAuthSession { $this->GetRoles(); $this->logged_in = true; + if ( function_exists("awl_set_locale") && isset($this->locale) && $this->locale != "" ) { + awl_set_locale($this->locale); + } }