Commit eef8373d authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(setup) Increase time limit for migrate step as it might be needed

issue #2895
parent 2af8ee17
......@@ -297,6 +297,9 @@ class setupStepMigrate extends setupStep
function execute (): string
{
if (ini_get('max_execution_time') < 180) {
set_time_limit(180);
}
if (empty($this->checks) || isset($_POST['reload'])) {
$this->initialize_checks();
foreach ($this->checks as $check) {
......@@ -308,6 +311,9 @@ class setupStepMigrate extends setupStep
function save_object ()
{
if (ini_get('max_execution_time') < 180) {
set_time_limit(180);
}
$this->is_completed = TRUE;
parent::save_object();
foreach ($this->checks as $check) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment