Changeset 7393

Show
Ignore:
Timestamp:
03/19/08 02:46:27 (6 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/class-wp-filesystem-ftpext.php

    r7369 r7393  
    168168    function put_contents($file,$contents,$type=''){ 
    169169        if( empty($type) ){ 
    170             $extension = substr(strrchr($filename, "."), 1); 
     170            $extension = substr(strrchr($file, "."), 1); 
    171171            $type = isset($this->filetypes[ $extension ]) ? $this->filetypes[ $extension ] : FTP_ASCII; 
    172172        } 
  • trunk/wp-admin/includes/file.php

    r7327 r7393  
    204204        return false; 
    205205 
    206     $handle = fopen($tmpfname, 'w'); 
     206    $handle = @fopen($tmpfname, 'w'); 
    207207    if( ! $handle ) 
    208208        return false;