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:
parent
01c49619d2
commit
045e4af5d0
@ -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();
|
||||
|
@ -203,7 +203,7 @@ function download_url( $url ) {
|
||||
if( ! $tmpfname )
|
||||
return false;
|
||||
|
||||
$handle = fopen($tmpfname, 'w');
|
||||
$handle = @fopen($tmpfname, 'w');
|
||||
if( ! $handle )
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user