Skip to content

Commit

Permalink
Fixed issue #9143: Comfort update backups have different extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 23, 2014
1 parent 33b5157 commit 150d232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/update.php
Expand Up @@ -292,7 +292,7 @@ function step3()
if ((in_array($aDatabasetype, array('mysql', 'mysqli'))) && Yii::app()->getConfig('demoMode') != true) {
Yii::app()->loadHelper("admin/backupdb");
$sfilename = $tempdir.DIRECTORY_SEPARATOR."backup_db_".randomChars(20)."_".dateShift(date("Y-m-d H:i:s"), "Y-m-d", Yii::app()->getConfig('timeadjust')).".sql";
$dfilename = $tempdir.DIRECTORY_SEPARATOR."LimeSurvey_database_backup_".$basefilename.".sql.gz";
$dfilename = $tempdir.DIRECTORY_SEPARATOR."LimeSurvey_database_backup_".$basefilename.".zip";

outputDatabase('',false,$sfilename);
// Before try to zip: test size of file
Expand Down

0 comments on commit 150d232

Please sign in to comment.