FIX Disabling a website does not put it offline
This commit is contained in:
parent
155d41ee80
commit
983dc80d9e
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user