Fix typo in ftpext class. Handle safe mode errors. PRops DD32. see #5586

git-svn-id: http://svn.automattic.com/wordpress/trunk@7393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-19 02:46:27 +00:00
parent 296acb1a5a
commit 12c62fa4d4
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ class WP_Filesystem_FTPext{
}
function put_contents($file,$contents,$type=''){
if( empty($type) ){
$extension = substr(strrchr($filename, "."), 1);
$extension = substr(strrchr($file, "."), 1);
$type = isset($this->filetypes[ $extension ]) ? $this->filetypes[ $extension ] : FTP_ASCII;
}
$temp = tmpfile();

View File

@ -203,7 +203,7 @@ function download_url( $url ) {
if( ! $tmpfname )
return false;
$handle = fopen($tmpfname, 'w');
$handle = @fopen($tmpfname, 'w');
if( ! $handle )
return false;