Change the context every time the domains class set method is called.

This commit is contained in:
Mark Crane
2012-10-17 15:48:35 +00:00
parent 8e23f390c4
commit b74bed0bd8
+4 -6
View File
@@ -111,12 +111,10 @@
} }
//set the context //set the context
if (strlen($_SESSION["context"]) == 0) { if (count($_SESSION["domains"]) > 1) {
if (count($_SESSION["domains"]) > 1) { $_SESSION["context"] = $_SESSION["domain_name"];
$_SESSION["context"] = $_SESSION["domain_name"]; } else {
} else { $_SESSION["context"] = 'default';
$_SESSION["context"] = 'default';
}
} }
//recordings add the domain to the path if there is more than one domains //recordings add the domain to the path if there is more than one domains