1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-27 16:03:00 +02:00

Fix for backup cron not working.

This commit is contained in:
Cameron 2014-09-14 17:40:02 -07:00
parent 096f4d08db
commit f9d521ad04

View File

@ -1969,18 +1969,19 @@ class e_db_mysql
$fileName = ($table =='*') ? str_replace(" ","_",SITENAME) : $table;
$fileName = preg_replace('/[^\w]/i',"",$fileName);
$backupFile = ($file) ? e_BACKUP.$file : e_BACKUP.$fileName."_".$this->mySQLPrefix.date("Y-m-d-H-i-s").".sql";
$backupFile = ($file) ? e_BACKUP.$file : e_BACKUP.strtolower($fileName)."_".$this->mySQLPrefix.date("Y-m-d-H-i-s").".sql";
if($table=='*')
{
$nolog = vartrue($options['nologs']) ? 'nologs' : '';
$nolog = vartrue($options['nologs']) ? 'nologs' : 'all';
$tableList = $this->db_TableList($nolog);
}
else
{
$tableList = explode(",",$table);
}
$header = "-- e107 Database Backup File \n";
$header .= "-- Host: ".$_SERVER['SERVER_NAME']."\n";
$header .= "-- Generation Time: ".date('r')."\n";