N°4207 N°4298 Fix data/.maintenance flag not removed by setup anymore

Was already fixed in the develop branch
(cherry picked from commit d0986c048a)
(cherry picked from commit 9126635cf2)
This commit is contained in:
Eric
2021-08-19 12:14:14 +02:00
committed by Pierre Goiffon
parent 8f0a5fcaf9
commit 2bc61caab1
2 changed files with 5 additions and 1 deletions

View File

@@ -32,7 +32,8 @@
* 'file': string Name of the file to load
* 'session_status': string 'start', 'continue' or 'end'
* 'percent': integer 0..100 the percentage of completion once the file has been loaded
*/
*/
$bBypassMaintenance = true; // Reset maintenance mode in case of problem
define('SAFE_MINIMUM_MEMORY', 64*1024*1024);
require_once('../approot.inc.php');
require_once(APPROOT.'/application/utils.inc.php');

View File

@@ -2665,6 +2665,9 @@ class WizStepDone extends WizardStep
$oPage->add('<img style="border:0" src="'.$sImgUrl.'"/>');
$sForm = addslashes($sForm);
$oPage->add_ready_script("$('#wiz_form').after('$sForm');");
// avoid leaving in a dirty state
SetupUtils::ExitMaintenanceMode(false);
SetupUtils::ExitReadOnlyMode(false);
SetupUtils::EraseSetupToken();
}