X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/874d2a2f468a0d1e69aab49b1fe2d9d79d3e1142..refs/tags/wordpress-4.1:/wp-admin/includes/class-ftp.php diff --git a/wp-admin/includes/class-ftp.php b/wp-admin/includes/class-ftp.php index f068f157..01e585bf 100644 --- a/wp-admin/includes/class-ftp.php +++ b/wp-admin/includes/class-ftp.php @@ -504,7 +504,7 @@ class ftp_base { return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "LIST", "rawlist"); } - function nlist($pathname="") { + function nlist($pathname="", $arg="") { return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist"); } @@ -903,5 +903,4 @@ if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) { $mod_sockets = extension_loaded( 'sockets' ); } -require_once "class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; -?> +require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";