Make WordPress Core


Ignore:
Timestamp:
03/19/2008 02:46:27 AM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        }
Note: See TracChangeset for help on using the changeset viewer.