diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 17:40:07 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 17:40:07 +0000 |
commit | 485935e1f1a3a773260cda0b7ac3f3800dca990e (patch) | |
tree | ef8a8069f948d96bc86787cc30ea8fe1e3239837 /phpBB/includes/functions_transfer.php | |
parent | a7df65168c3380e50fbe84d8f9e74274b1cc74ff (diff) | |
download | forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.gz forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.bz2 forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.xz forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.zip |
he braces style is deprecated as of PHP 6
git-svn-id: file:///svn/phpbb/trunk@6459 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_transfer.php')
-rw-r--r-- | phpBB/includes/functions_transfer.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_transfer.php b/phpBB/includes/functions_transfer.php index b147052c9c..00ef78f933 100644 --- a/phpBB/includes/functions_transfer.php +++ b/phpBB/includes/functions_transfer.php @@ -263,7 +263,7 @@ class ftp extends transfer // Make sure $this->root_path is layed out the same way as the $user->page['root_script_path'] value (/ at the end) $this->root_path = str_replace('\\', '/', $this->root_path); - $this->root_path = (($root_path{0} != '/' ) ? '/' : '') . $root_path . ((substr($root_path, -1, 1) == '/') ? '' : '/'); + $this->root_path = (($root_path[0] != '/' ) ? '/' : '') . $root_path . ((substr($root_path, -1, 1) == '/') ? '' : '/'); // Init some needed values transfer::transfer(); @@ -475,9 +475,9 @@ class ftp_fsock extends transfer $this->password = $password; $this->timeout = $timeout; - // Make sure $this->root_path is layed out the same way as the $user->page['root_script_path'] value (prefixed with / and no / at the end) + // Make sure $this->root_path is layed out the same way as the $user->page['root_script_path'] value (/ at the end) $this->root_path = str_replace('\\', '/', $this->root_path); - $this->root_path = (($root_path{0} != '/' ) ? '/' : '') . $root_path . ((substr($root_path, -1, 1) == '/') ? '' : '/'); + $this->root_path = (($root_path[0] != '/' ) ? '/' : '') . $root_path . ((substr($root_path, -1, 1) == '/') ? '' : '/'); // Init some needed values transfer::transfer(); |