mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
FIX: mysql dump
This commit is contained in:
parent
31b890cd85
commit
c0087a6357
@ -16,11 +16,15 @@ class DumpMySQL extends BuildTask
|
||||
{
|
||||
$cfg = DB::getConfig();
|
||||
|
||||
try {
|
||||
ob_clean();
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
|
||||
header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"');
|
||||
passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database']);
|
||||
|
||||
ob_end_clean();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user