Skip to content

Instantly share code, notes, and snippets.

@haxney
Created April 13, 2011 15:21
Show Gist options
  • Save haxney/917736 to your computer and use it in GitHub Desktop.
Save haxney/917736 to your computer and use it in GitHub Desktop.
Apply this to system.module
diff --git a/modules/system/system.module b/modules/system/system.module
index 383dc8a..0625e48 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1850,6 +1850,14 @@ function system_filetransfer_info() {
);
}
+ $backends['file'] = array(
+ 'title' => t('Local file'),
+ 'class' => 'FileTransferLocal',
+ 'file' => 'local.inc',
+ 'file path' => 'includes/filetransfer',
+ 'weight' => 0,
+ );
+
// SSH2 lib connection is only available if the proper PHP extension is
// installed.
if (function_exists('ssh2_connect')) {
@haxney
Copy link
Author

haxney commented Apr 13, 2011

To apply:

wget https://gist.github.com/raw/917736/de5e55c22a759bd4b37299c6c0cc38bbfce845ee/system.module.patch
patch -p1 < system.module.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment