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
1 changed files with 4 additions and 6 deletions

View File

@ -111,12 +111,10 @@
}
//set the context
if (strlen($_SESSION["context"]) == 0) {
if (count($_SESSION["domains"]) > 1) {
$_SESSION["context"] = $_SESSION["domain_name"];
} else {
$_SESSION["context"] = 'default';
}
if (count($_SESSION["domains"]) > 1) {
$_SESSION["context"] = $_SESSION["domain_name"];
} else {
$_SESSION["context"] = 'default';
}
//recordings add the domain to the path if there is more than one domains