@@ -429,12 +429,12 @@ protected function DoBackup($sBackupFileFormat, $sSourceConfigFile, $sMySQLBinDi
429429 *
430430 * @since 3.1.0 N°2013 added the aParamValues param
431431 */
432- protected function DoCompile ($ aRemovedExtensionCodes , $ aSelectedModules , $ sSourceDir , $ sExtensionDir , $ bUseSymbolicLinks = null )
432+ protected function DoCompile ($ aRemovedExtensionCodes , $ aSelectedModules , $ sSourceDir , $ sExtensionDir , $ bUseSymbolicLinks = null , $ bEnterMaintenanceMode = true )
433433 {
434434 /**
435- * @since 3.2.0 move the ContextTag init at the very beginning of the method
436- * @noinspection PhpUnusedLocalVariableInspection
437- */
435+ * @since 3.2.0 move the ContextTag init at the very beginning of the method
436+ * @noinspection PhpUnusedLocalVariableInspection
437+ */
438438 $ oContextTag = new ContextTag (ContextTag::TAG_SETUP );
439439
440440 SetupLog::Info ("Compiling data model. " );
@@ -471,7 +471,7 @@ protected function DoCompile($aRemovedExtensionCodes, $aSelectedModules, $sSourc
471471
472472 $ bIsAlreadyInMaintenanceMode = SetupUtils::IsInMaintenanceMode ();
473473
474- if (($ sEnvironment == 'production ' ) && !$ bIsAlreadyInMaintenanceMode ) {
474+ if (($ sEnvironment == 'production ' ) && !$ bIsAlreadyInMaintenanceMode && $ bEnterMaintenanceMode ) {
475475 $ sConfigFilePath = utils::GetConfigFilePath ($ sEnvironment );
476476 if (is_file ($ sConfigFilePath )) {
477477 $ oConfig = new Config ($ sConfigFilePath );
@@ -531,7 +531,7 @@ protected function DoCompile($aRemovedExtensionCodes, $aSelectedModules, $sSourc
531531 }
532532
533533 $ oMFCompiler = new MFCompiler ($ oFactory , $ sEnvironment );
534- $ oMFCompiler ->Compile ($ sTargetPath , null , $ bUseSymbolicLinks );
534+ $ oMFCompiler ->Compile ($ sTargetPath , null , $ bUseSymbolicLinks, false , $ bEnterMaintenanceMode );
535535 //$aCompilerLog = $oMFCompiler->GetLog();
536536 //SetupLog::Info(implode("\n", $aCompilerLog));
537537 SetupLog::Info ("Data model successfully compiled to ' $ sTargetPath'. " );
0 commit comments