Typo in index.php : forgot a "s" in the dirname to store db backups

This commit is contained in:
Phyks 2013-09-23 23:19:49 +02:00
parent d508288f20
commit fd8647e678

View File

@ -686,8 +686,8 @@
$global_payback = new GlobalPayback(); $global_payback = new GlobalPayback();
// Backup database // Backup database
if(!is_dir('db_backup')) { if(!is_dir('db_backups')) {
mkdir('db_backup'); mkdir('db_backups');
} }
system("mysqldump -h ".MYSQL_HOST." -u ".MYSQL_LOGIN." -p ".MYSQL_PASSWORD." ".MYSQL_DB." > db_backup/".date('d-m-Y_H:i')); system("mysqldump -h ".MYSQL_HOST." -u ".MYSQL_LOGIN." -p ".MYSQL_PASSWORD." ".MYSQL_DB." > db_backup/".date('d-m-Y_H:i'));