summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 05:38:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 05:38:28 +0000
commitdf12d6ff7d1cfbee864a4e0b1a640b6e2df29f23 (patch)
tree65be7a5059343525089bad8948a9ff44f2a67f6d /modules
parent7c08cff12e46b4a7623224694d87f7f88ac53b76 (diff)
downloadbrdo-df12d6ff7d1cfbee864a4e0b1a640b6e2df29f23.tar.gz
brdo-df12d6ff7d1cfbee864a4e0b1a640b6e2df29f23.tar.bz2
#602520 by JacobSingh and dww: Make FileTransfer form have one option for FTP (ftp_extension() preferred).
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.module17
1 files changed, 4 insertions, 13 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index bc582e6ff..499612d71 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1509,25 +1509,16 @@ function system_updater_info() {
function system_filetransfer_backends() {
$backends = array();
- //This is the default, will be available on most systems
- if (function_exists('ftp_connect')) {
- $backends['ftp_extension'] = array(
+ // This is the default, will be available on most systems.
+ if (function_exists('ftp_connect') || ini_get('allow_url_fopen')) {
+ $backends['ftp'] = array(
'title' => t('FTP'),
- 'class' => 'FileTransferFTPExtension',
+ 'class' => 'FileTransferFTP',
'settings_form' => 'system_filetransfer_backend_form_ftp',
'weight' => 0,
);
}
- if (ini_get('allow_url_fopen')) {
- $backends['ftp_wrapper'] = array(
- 'title' => t('FTP using file streams'),
- 'class' => 'FileTransferFTPWrapper',
- 'settings_form' => 'system_filetransfer_backend_form_ftp',
- 'weight' => 10,
- );
- }
-
// SSH2 lib connection is only available if the proper PHP extension is
// installed.
if (function_exists('ssh2_connect')) {