Merge remote-tracking branch 'origin/develop' into feature/backoffice-full-moon-design

# Conflicts:
#	webservices/import.php
This commit is contained in:
Pierre Goiffon
2020-09-18 10:48:34 +02:00
31 changed files with 1387 additions and 1224 deletions

View File

@@ -340,11 +340,9 @@ function CronExec($oP, $bVerbose, $bDebug=false)
/**
* @param \WebPage $oP
*/
function CheckMaintenanceMode(Page $oP): void
{
function CheckMaintenanceMode(Page $oP) {
// Verify files instead of reloading the full config each time
if (file_exists(MAINTENANCE_MODE_FILE) || file_exists(READONLY_MODE_FILE))
{
if (file_exists(MAINTENANCE_MODE_FILE) || file_exists(READONLY_MODE_FILE)) {
$oP->p("Maintenance detected, exiting");
exit(EXIT_CODE_ERROR);
}