Override current blog id by the DC_BLOG_ID var
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Jun 2008 09:35:19 +0000 (11:35 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Jun 2008 09:35:19 +0000 (11:35 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
class.xorg.auth.php

index 33a5461..0adb043 100644 (file)
@@ -11,7 +11,6 @@ class xorgAuth extends dcAuth {
     $core->auth->sudo(array($core->auth, 'updateUserPerms'), $blog);
   }
 
-
   public function __construct(&$core) {
     parent::__construct($core);
     $core->addBehavior('coreBlogConstruct', array('xorgAuth', 'behavior_coreBlogConstruct'));
@@ -26,6 +25,7 @@ class xorgAuth extends dcAuth {
     if (!session_id()) {
       $core->session->start();
     }
+    $_SESSION['sess_blog_id'] = $_SERVER['DC_BLOG_ID'];
     $user = @$_SESSION['auth-xorg'];
     if ($user && is_null($this->xorg_infos['forlife'])) {
       foreach ($this->xorg_infos as $key => $val) {