Fixed: Enabling DNS / Temporary URL not enabling properly for WHMCS

Changed: SmarterMail 5 - 10 now calculates disk space usage using the API not
the file system / user path.
This commit is contained in:
Christopher York 2013-01-18 13:05:15 -06:00
parent 3a22ea2ef0
commit bdd51f2151
6 changed files with 74 additions and 104 deletions

View file

@ -310,25 +310,25 @@ namespace WebsitePanel.EnterpriseServer
// error while creating mail account
throw new Exception("Could not create mail account", ex);
}
}
// Instant Alias / Temporary URL
if (tempDomain && (domainId > 0))
// Instant Alias / Temporary URL
if (tempDomain && (domainId > 0))
{
int instantAliasId = ServerController.CreateDomainInstantAlias("", domainId);
if (instantAliasId < 0)
{
int instantAliasId = ServerController.CreateDomainInstantAlias("", domainId);
if (instantAliasId < 0)
{
// rollback wizard
Rollback();
// rollback wizard
Rollback();
return instantAliasId;
}
return instantAliasId;
}
}
// Domain DNS Zone
if (createZoneRecord && (domainId > 0))
{
ServerController.EnableDomainDns(domainId);
}
// Domain DNS Zone
if (createZoneRecord && (domainId > 0))
{
ServerController.EnableDomainDns(domainId);
}
}