diff --git a/web/concrete/core/controllers/single_pages/dashboard/system/backup_restore/backup.php b/web/concrete/core/controllers/single_pages/dashboard/system/backup_restore/backup.php
index <HASH>..<HASH> 100644
--- a/web/concrete/core/controllers/single_pages/dashboard/system/backup_restore/backup.php
+++ b/web/concrete/core/controllers/single_pages/dashboard/system/backup_restore/backup.php
@@ -74,8 +74,8 @@ class Concrete5_Controller_Dashboard_System_BackupRestore_Backup extends Dashboa
 		if (!is_null($str_fname) && trim($str_fname) != "" && !preg_match('/\.\./',$str_fname)) {
 			$fullFilename = DIR_FILES_BACKUPS . "/$str_fname";
 			if(is_file($fullFilename)) {
-				@chmod(DIR_FILES_BACKUPS . "/$str_fname", 666);
-				@unlink(DIR_FILES_BACKUPS . "/$str_fname");
+				@chmod($fullFilename, 666);
+				@unlink($fullFilename);
 				if(is_file($fullFilename)) {
 					$this->error->add(t('Error deleting the file %s.', $str_fname) . ' ' . t('Please check the permissions of the folder %s', DIR_FILES_BACKUPS));
 				}
Let's simplify the code a bit

Those lines didn't found a way from my head to my hands... ;)


Former-commit-id: 6d5aa<I>b<I>af<I>ea<I>cede8e9fc5e