Changeset 1269 for trunk/plugins


Ignore:
Timestamp:
07/14/10 09:50:52 (9 years ago)
Author:
gogo
Message:

Patch for Mootools File Manager for deprecation of ereg in php.

Location:
trunk/plugins/MootoolsFileManager/mootools-filemanager/Backend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/MootoolsFileManager/mootools-filemanager/Backend/Assets/getid3/getid3.php

    r1239 r1269  
    111111        // Check memory limit. 
    112112        $memory_limit = ini_get('memory_limit'); 
    113         if (eregi('([0-9]+)M', $memory_limit, $matches)) { 
     113        if (preg_match('/([0-9]+)M/i', $memory_limit, $matches)) { 
    114114            // could be stored as "16M" rather than 16777216 for example 
    115115            $memory_limit = $matches[1] * 1048576; 
     
    14941494                $return_string .= str_pad(dechex(ord($string{$i})), 2, '0', STR_PAD_LEFT); 
    14951495            } else { 
    1496                 $return_string .= ' '.(ereg("[\x20-\x7E]", $string{$i}) ? $string{$i} : '€'); 
     1496                $return_string .= ' '.(preg_match("/[\x20-\x7E]/", $string{$i}) ? $string{$i} : '€'); 
    14971497            } 
    14981498            if ($spaces) { 
  • trunk/plugins/MootoolsFileManager/mootools-filemanager/Backend/Upload.php

    r1239 r1269  
    9696                $mime = null; 
    9797                $ini = error_reporting(0); 
    98                 if (function_exists('finfo_open') && $f = finfo_open(FILEINFO_MIME, getenv('MAGIC'))){ 
     98                if (function_exists('finfo_open') && $f = @finfo_open(FILEINFO_MIME, getenv('MAGIC'))){ 
    9999                        $mime = finfo_file($f, $file); 
    100100                        finfo_close($f); 
Note: See TracChangeset for help on using the changeset viewer.