Changeset 5281 for trunk/calendar


Ignore:
Timestamp:
12/21/11 18:42:14 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2398 - Compatibilizando codigo do Expresso, em geral, com PHP >= 5.3

Location:
trunk/calendar/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.bocalendar.inc.php

    r5132 r5281  
    192192                        $owner = get_var('owner',array('GET','POST'),$GLOBALS['owner']); 
    193193 
    194                         ereg('menuaction=([a-zA-Z.]+)',$_SERVER['HTTP_REFERER'],$regs); 
     194                        preg_match('/menuaction=([a-zA-Z.]+)/',$_SERVER['HTTP_REFERER'],$regs); 
    195195                        $from = $regs[1]; 
    196196                        if ((substr($_SERVER['PHP_SELF'],-8) == 'home.php' && substr($this->prefs['calendar']['defaultcalendar'],0,7) == 'planner' 
     
    35393539                                         
    35403540                                         
    3541                                         list($subject,$body1) = split("\n",$GLOBALS['phpgw']->preferences->parse_notify($notify_msg,$details),2); 
     3541                                        list($subject,$body1) = preg_split('/\n/',$GLOBALS['phpgw']->preferences->parse_notify($notify_msg,$details),2); 
    35423542                                         
    35433543                                        switch($part_prefs['calendar']['update_format']) 
     
    37913791                                        $details['startdate'] = $GLOBALS['phpgw']->common->show_date($starttime); 
    37923792                                        $details['enddate']   = $GLOBALS['phpgw']->common->show_date($endtime); 
    3793                                         list($subject,$body1) = split("\n",$GLOBALS['phpgw']->preferences->parse_notify($notify_msg,$details),2); 
     3793                                        list($subject,$body1) = preg_split('/\n/',$GLOBALS['phpgw']->preferences->parse_notify($notify_msg,$details),2); 
    37943794                                } 
    37953795                                 
  • trunk/calendar/inc/class.socalendar_sql.inc.php

    r5243 r5281  
    794794                function store_event() 
    795795                { 
    796                         return $this->save_event(&$this->event); 
     796                        return $this->save_event($this->event); 
    797797                } 
    798798 
Note: See TracChangeset for help on using the changeset viewer.