mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°4207 N°4298 Fix data/.maintenance flag not removed by setup anymore
Was already fixed in the develop branch (cherry picked from commitd0986c048a) (cherry picked from commit9126635cf2)
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user