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

git-svn-id: https://develop.svn.wordpress.org/trunk@7393 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-19 02:46:27 +00:00
parent 01c49619d2
commit 045e4af5d0
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;