BUG 9896 Error message when restoring a workspace, that truncates the restore.

When restoring a workspace, there is an error message: 'Could not create the directory....' that truncates the restore. So a validation was added to create the folder that was not finding when doing the restore.
This commit is contained in:
jennylee
2013-02-18 11:59:36 -04:00
parent 2ab284a6a7
commit 890454c02a

View File

@@ -415,10 +415,7 @@ function run_workspace_backup($args, $opts) {
function run_workspace_restore($args, $opts) {
$filename = $args[0];
if(!file_exists(PATH_DATA . 'upgrade')) {
print_r(PATH_DATA . 'upgrade');
G::verifyPath(PATH_DATA . 'upgrade', true);
}
if (strpos($filename, "/") === false && strpos($filename, '\\') === false) {
$filename = PATH_DATA . "backups/$filename";