diff --git a/setup/db_backup.php b/setup/db_backup.php index b1afae7cc6..1a07aaf4b5 100644 --- a/setup/db_backup.php +++ b/setup/db_backup.php @@ -126,7 +126,7 @@ if (!empty($_POST['mount'])) { Vfs::$is_root = true; echo '
'. - (Vfs::mount('filesystem://default'.$db_backup->backup_dir.'?group=Admins&mode=070','/backup',false) ? + (Vfs::mount(($db_backup->backup_dir[0] === '/' ? 'filesystem://default' : '').$db_backup->backup_dir.'?group=Admins&mode=070','/backup',false) ? lang('Backup directory %1 mounted as %2',$db_backup->backup_dir,'/backup') : lang('Failed to mount Backup directory!')). "
\n";