Auto update fixes from DD32. see #5586

git-svn-id: https://develop.svn.wordpress.org/trunk@7238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-03-11 16:37:44 +00:00
parent e5ce1add47
commit 40da1d6412
6 changed files with 36 additions and 32 deletions
@@ -139,7 +139,7 @@ class WP_Filesystem_ftpsockets{
return false;
if( empty($type) ){
$extension = substr(strrchr($filename, "."), 1);
$extension = substr(strrchr($file, "."), 1);
$type = isset($this->filetypes[ $extension ]) ? $this->filetypes[ $extension ] : FTP_AUTOASCII;
}
$this->ftp->SetType($type);
@@ -376,7 +376,7 @@ class WP_Filesystem_ftpsockets{
function rmdir($path,$recursive=false){
if( ! $recursive )
return $this->ftp->rmdir($file);
return $this->ftp->rmdir($path);
return $this->ftp->mdel($path);
}