From f29051bcdc9c9594788f686510b97226ea7a761c Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 16 Oct 2012 18:08:24 +0000 Subject: [PATCH] Use the new domains class when switching between domains. --- core/domains/domains.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/domains/domains.php b/core/domains/domains.php index 036c4d2854..a2cba937b2 100644 --- a/core/domains/domains.php +++ b/core/domains/domains.php @@ -68,13 +68,12 @@ else { $_SESSION["menu"] = ''; //clear the extension array so that it is regenerated for the selected domain unset($_SESSION['extension_array']); - //set the context - if (count($_SESSION["domains"]) > 1) { - $_SESSION["context"] = $_SESSION["domain_name"]; - } - else { - $_SESSION["context"] = 'default'; - } + //set the setting arrays + //domains set() + require "includes/classes/domains.php"; + $domain = new domains(); + $domain->db = $db; + $domain->set(); } }