aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_transfer.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions_transfer.php b/phpBB/includes/functions_transfer.php
index 00ef78f933..3a3bb24563 100644
--- a/phpBB/includes/functions_transfer.php
+++ b/phpBB/includes/functions_transfer.php
@@ -196,7 +196,9 @@ class transfer
global $phpbb_root_path;
$directory = $this->root_path . str_replace($phpbb_root_path, '', $directory);
- $result = $this->_ls($directory);
+
+ $this->_chdir($directory);
+ $result = $this->_ls('');
if ($result !== false && is_array($result))
{