mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 19:18:44 +02:00
Merge remote-tracking branch 'origin/develop' into feature/backoffice-full-moon-design
# Conflicts: # webservices/import.php
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user