Ignore:
Timestamp:
03/21/12 14:00:25 (12 years ago)
Author:
gustavo
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.setup_detection.inc.php

    r2 r5773  
    2121                        while($entry=$d->read()) 
    2222                        { 
    23                                 if($entry != ".." && !ereg('setup',$entry) && is_dir(PHPGW_SERVER_ROOT . '/' . $entry)) 
     23                                if($entry != ".." && !preg_match('/setup/',$entry) && is_dir(PHPGW_SERVER_ROOT . '/' . $entry)) 
    2424                                { 
    2525                                        $f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php'; 
     
    317317                        $config_table = $ver[0] > 0 || (int)$ver[2] > 10 ? 'phpgw_config' : 'config'; 
    318318 
    319                         if(ereg("([0-9]+)(pre)([0-9]+)",$ver[2],$regs)) 
     319                        if(preg_match('/([0-9]+)(pre)([0-9]+)/',$ver[2],$regs)) 
    320320                        { 
    321321                                if(($regs[1] == '10') && ($regs[3] >= '6')) 
     
    351351                        } 
    352352                        if($GLOBALS['phpgw_setup']->alessthanb($GLOBALS['setup_info']['phpgwapi']['currentver'], '0.9.14.501') || 
    353                            ereg('0\.9\.15\.00[01]{1,1}',$GLOBALS['setup_info']['phpgwapi']['currentver'])) 
     353                           preg_match('/0\.9\.15\.00[01]{1,1}/',$GLOBALS['setup_info']['phpgwapi']['currentver'])) 
    354354                        { 
    355355                                $langtbl  = 'lang'; 
Note: See TracChangeset for help on using the changeset viewer.