|
@@ 873-876 (lines=4) @@
|
| 870 |
|
|
| 871 |
|
list ($username, $detect_path, $found_path) = $ftp->detect_path($boarddir); |
| 872 |
|
|
| 873 |
|
if ($found_path) |
| 874 |
|
$_POST['ftp_path'] = $detect_path; |
| 875 |
|
elseif (!isset($_POST['ftp_path'])) |
| 876 |
|
$_POST['ftp_path'] = isset($modSettings['package_path']) ? $modSettings['package_path'] : $detect_path; |
| 877 |
|
|
| 878 |
|
if (!isset($_POST['ftp_username'])) |
| 879 |
|
$_POST['ftp_username'] = $username; |
|
@@ 1051-1054 (lines=4) @@
|
| 1048 |
|
|
| 1049 |
|
list ($username, $detect_path, $found_path) = $ftp->detect_path($boarddir); |
| 1050 |
|
|
| 1051 |
|
if ($found_path) |
| 1052 |
|
$_POST['ftp_path'] = $detect_path; |
| 1053 |
|
elseif (!isset($_POST['ftp_path'])) |
| 1054 |
|
$_POST['ftp_path'] = isset($modSettings['package_path']) ? $modSettings['package_path'] : $detect_path; |
| 1055 |
|
|
| 1056 |
|
if (!isset($_POST['ftp_username'])) |
| 1057 |
|
$_POST['ftp_username'] = $username; |