Changeset 6057 for trunk/mobile


Ignore:
Timestamp:
04/27/12 09:17:30 (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/mobile/inc/class.ui_mobilecalendar.inc.php

    r4277 r6057  
    146146                                //descobrindo a semana anterior e a pŽroxima 
    147147                                $last_week = date("d-m-Y", strtotime("-7 day", mktime(0,0,0,$month,$day,$year) ) ); 
    148                                 $last_week = split("-",$last_week); 
     148                                $last_week = preg_split('/-/',$last_week); 
    149149                                $next_week = date("d-m-Y", strtotime("+7 day", mktime(0,0,0,$month,$day,$year) ) ); 
    150                                 $next_week = split("-",$next_week); 
     150                                $next_week = preg_split('/-/',$next_week); 
    151151                                 
    152152                                //descobrind o primeiro dia da semana e o último 
    153153                                $first_week_day = date("d-m-Y", strtotime("-".$current_day_of_week." day", mktime(0,0,0,$month,$day,$year) ) ); 
    154                                 $first_week_day = split("-",$first_week_day); 
     154                                $first_week_day = preg_split('/-/',$first_week_day); 
    155155                                $last_week_day = date("d-m-Y", strtotime("+".(6-$current_day_of_week)." day", mktime(0,0,0,$month,$day,$year) ) ); 
    156                                 $last_week_day = split("-",$last_week_day); 
     156                                $last_week_day = preg_split('/-/',$last_week_day); 
    157157                                 
    158158                                //definindo a barra de navegação do calandário 
     
    196196                                $last_day_of_before_month = date('t', mktime(0,0,0,$month-1,"01",$year)); 
    197197                                $last_month_year = date("m-Y", strtotime("-1 month", mktime(0,0,0,$month,"01",$year) ) ); 
    198                                 $last_month_year = split("-",$last_month_year); 
     198                                $last_month_year = preg_split('/-/',$last_month_year); 
    199199                                $next_month_year = date("m-Y", strtotime("+1 month", mktime(0,0,0,$month,"01",$year) ) ); 
    200                                 $next_month_year = split("-",$next_month_year); 
     200                                $next_month_year = preg_split('/-/',$next_month_year); 
    201201                                $today = date("d-m-Y"); 
    202202                                 
     
    285285                                //descobrind o primeiro dia da semana e o último 
    286286                                $before_day = date("d-m-Y", strtotime("-1 day", mktime(0,0,0,$month,$day,$year) ) ); 
    287                                 $before_day = split("-",$before_day); 
     287                                $before_day = preg_split('/-/',$before_day); 
    288288                                $next_day = date("d-m-Y", strtotime("+1 day", mktime(0,0,0,$month,$day,$year) ) ); 
    289                                 $next_day = split("-",$next_day);                                
     289                                $next_day = preg_split('/-/',$next_day);                                 
    290290                                 
    291291                                //definindo a barra de navegação do calandário 
Note: See TracChangeset for help on using the changeset viewer.