Add user lang and timezone when creating the account.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 3 Jun 2008 21:20:05 +0000 (23:20 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 3 Jun 2008 21:20:05 +0000 (23:20 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
class.xorg.auth.php

index fd300d4..06def8f 100644 (file)
@@ -57,6 +57,8 @@ class xorgAuth extends dcAuth {
       $defaults = $core->userDefaults();
       $defaults['post_xorg_perms'] = 'public';
       $cur->user_options = $defaults;
+      $cur->user_lang = 'fr';
+      $cur->user_tz = 'Europe/Paris';
       $cur->user_default_blog = $_SERVER['DC_BLOG_ID'];
       $core->addUser($cur);
     }