Skip to content

Commit

Permalink
Criando IMPRIMIR_ANEXOS=true caso não exista
Browse files Browse the repository at this point in the history
  • Loading branch information
juliolobo committed Jul 18, 2024
1 parent bb411eb commit 58b7cac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/controllers/Mapos.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,9 @@ private function editDontEnv(array $data)
} else {
if (isset($_ENV[$constante])) {
$env_file = str_replace("$constante={$_ENV[$constante]}", "$constante={$valor}", $env_file);
} else {
file_put_contents($env_file_path, $env_file . "\n{$constante}={$valor}\n");
$env_file = file_get_contents($env_file_path);
}
}
}
Expand Down

0 comments on commit 58b7cac

Please sign in to comment.