Ignore:
Timestamp:
04/13/12 10:19:53 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r5921 r5940  
    13901390                                        )) as $entry) 
    13911391                                { 
    1392                                         $newdir = ereg_replace ("^$f->fake_full_path", "$t->fake_full_path", $entry['directory']); 
     1392                                        $newdir = preg_replace("/^$f->fake_full_path/", "$t->fake_full_path", $entry['directory']); 
    13931393                                        $this->mkdir (array( 
    13941394                                                        'string'        => $newdir.'/'.$entry['name'], 
     
    14091409                                        } 
    14101410 
    1411                                         $newdir = ereg_replace ("^$f->fake_full_path", "$t->fake_full_path", $entry['directory']); 
     1411                                        $newdir = preg_replace("/^$f->fake_full_path/", "$t->fake_full_path", $entry['directory']); 
    14121412                                        $this->cp (array( 
    14131413                                                        'from'  => "$entry[directory]/$entry[name]", 
     
    16471647                                foreach ($ls as $entry) 
    16481648                                { 
    1649                                         $newdir = ereg_replace ("^$f->fake_full_path", $t->fake_full_path, $entry['directory']); 
     1649                                        $newdir = preg_replace("/^$f->fake_full_path/", $t->fake_full_path, $entry['directory']); 
    16501650                                        $newdir_clean = $this->clean_string (array ('string' => $newdir)); 
    16511651 
Note: See TracChangeset for help on using the changeset viewer.