From 43e25c76826842327d43ce4620c1dcecd1a6ef5b Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 1 Jun 2008 11:35:19 +0200 Subject: [PATCH] Override current blog id by the DC_BLOG_ID var Signed-off-by: Florent Bruneau --- class.xorg.auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.xorg.auth.php b/class.xorg.auth.php index 33a5461..0adb043 100644 --- a/class.xorg.auth.php +++ b/class.xorg.auth.php @@ -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) { -- 2.1.4