Fix problem with domain class being redeclared.

This commit is contained in:
Mark Crane 2013-05-11 04:54:45 +00:00
parent 08abe0d708
commit acc4e45791
1 changed files with 1 additions and 2 deletions

View File

@ -60,6 +60,7 @@ session_start();
} }
//set the domain information //set the domain information
if (strlen($domain_name) > 0) { if (strlen($domain_name) > 0) {
require_once "includes/classes/domains.php";
foreach ($_SESSION['domains'] as &$row) { foreach ($_SESSION['domains'] as &$row) {
if ($row['domain_name'] == $domain_name) { if ($row['domain_name'] == $domain_name) {
//set the domain session variables //set the domain session variables
@ -70,8 +71,6 @@ session_start();
$_SESSION["domain_name"] = $domain_name; $_SESSION["domain_name"] = $domain_name;
//set the setting arrays //set the setting arrays
//domains set()
require "includes/classes/domains.php";
$domain = new domains(); $domain = new domains();
$domain->db = $db; $domain->db = $db;
$domain->set(); $domain->set();