From: Florent Bruneau Date: Sun, 1 Jun 2008 09:35:19 +0000 (+0200) Subject: Override current blog id by the DC_BLOG_ID var X-Git-Url: http://git.polytechnique.org/?p=dotclear.git;a=commitdiff_plain;h=43e25c76826842327d43ce4620c1dcecd1a6ef5b Override current blog id by the DC_BLOG_ID var Signed-off-by: Florent Bruneau --- 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) {