Changeset 6037 for trunk/workflow


Ignore:
Timestamp:
04/26/12 11:43:10 (12 years ago)
Author:
marcosw
Message:

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

Location:
trunk/workflow/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.bo_adminjobs.inc.php

    r3167 r6037  
    109109                foreach ($logs as $key => $value) 
    110110                { 
    111                         $logs[$key]['date_time'] = ereg_replace("([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2}) ([[:digit:]]{2}):([[:digit:]]{2}):00", '\3/\2/\1 \4h\5', $value['date_time']); 
     111                        $logs[$key]['date_time'] = preg_replace('/([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2}) ([[:digit:]]{2}):([[:digit:]]{2}):00/', '\3/\2/\1 \4h\5', $value['date_time']); 
    112112                        $currentDate = $value['date_time']; 
    113113                        if (isset($writtenDates[substr($logs[$key]['date_time'], 0, 10)])) 
  • trunk/workflow/inc/class.bo_utils.inc.php

    r5928 r6037  
    6666        {  
    6767                // parâmetro a ser procurado no ldap 
    68                 $cn = trim(ereg_replace(' +', ' ', $params['cn'])); 
     68                $cn = trim(preg_replace('/ +/', ' ', $params['cn'])); 
    6969 
    7070                $output           = array(); 
  • trunk/workflow/inc/class.powergraphic.inc.php

    r5921 r6037  
    11431143                    $this->color['line_2'] = imagecolorallocate($this->img, 220, 200,  50); 
    11441144                } 
    1145                 else if (ereg("^(5|6)$", $this->type)) 
     1145                else if (preg_match('/^(5|6)$/', $this->type)) 
    11461146                { 
    11471147                    $this->color['arc_1']        = imagecolorallocate($this->img, 100, 150, 200); 
Note: See TracChangeset for help on using the changeset viewer.