mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-04 04:19:29 +00:00
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:
parent
296acb1a5a
commit
12c62fa4d4
@ -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…
x
Reference in New Issue
Block a user