FIX Disabling a website does not put it offline

This commit is contained in:
Laurent Destailleur 2019-08-13 05:03:45 +02:00
parent 155d41ee80
commit 983dc80d9e
2 changed files with 9 additions and 0 deletions

View File

@ -93,3 +93,11 @@ if ($_SERVER['PHP_SELF'] != DOL_URL_ROOT.'/website/index.php') // If we browsing
}
}
}
// Show off line message
if (! defined('USEDOLIBARREDITOR') && empty($website->status))
{
$weblangs->load("website");
print '<center><br><br>'.$weblangs->trans("SorryWebsiteIsCurrentlyOffLine").'</center>';
exit;
}

View File

@ -77,6 +77,7 @@ BackToListOfThirdParty=Back to list for Third Party
DisableSiteFirst=Disable website first
MyContainerTitle=My web site title
AnotherContainer=Another container
SorryWebsiteIsCurrentlyOffLine=Sorry, this website is currently off line. Please comme back later...
WEBSITE_USE_WEBSITE_ACCOUNTS=Enable the web site account table
WEBSITE_USE_WEBSITE_ACCOUNTSTooltip=Enable the table to store web site accounts (login/pass) for each website / third party
YouMustDefineTheHomePage=You must first define the default Home page