mirror of https://github.com/itflow-org/itflow
Fix DB Download to include company name and ITFlow
This commit is contained in:
parent
09838f10ed
commit
74fb7931f0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -601,10 +601,11 @@ if (isset($_GET['download_database'])) {
|
||||||
$sqlScript .= "\n";
|
$sqlScript .= "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($sqlScript))
|
if (!empty($sqlScript)) {
|
||||||
{
|
|
||||||
|
$company_name = $session_company_name;
|
||||||
// Save the SQL script to a backup file
|
// Save the SQL script to a backup file
|
||||||
$backup_file_name = date('Y-m-d') . '_' . $config_company_name . '_backup.sql';
|
$backup_file_name = date('Y-m-d') . '_' . $company_name . '_ITFlow_backup.sql';
|
||||||
$fileHandler = fopen($backup_file_name, 'w+');
|
$fileHandler = fopen($backup_file_name, 'w+');
|
||||||
$number_of_lines = fwrite($fileHandler, $sqlScript);
|
$number_of_lines = fwrite($fileHandler, $sqlScript);
|
||||||
fclose($fileHandler);
|
fclose($fileHandler);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue