- remove the default domain setting from main config file.

This commit is contained in:
wangchunsheng
2010-01-26 03:13:55 +00:00
parent f52d673492
commit 27a182780f
4 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ EOT;
else
{
$company = $this->company->getByDomain();
if(!$company) $company = $this->company->getByDomain($this->config->default->domain);
if(!$company and isset($this->config->default->domain)) $company = $this->company->getByDomain($this->config->default->domain);
if(!$company) $this->app->error(sprintf($this->lang->error->companyNotFound, $_SERVER['HTTP_HOST']), __FILE__, __LINE__, $exit = true);
$_SESSION['company'] = $company;
$this->app->company = $company;