Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/smarty/plugins/function.html_select_date.php

    r795 r7655  
    181181    $field_separator_count = -1; 
    182182    if ($display_months) { 
    183         $field_separator_count++; 
     183        ++$field_separator_count; 
    184184        $month_names = array(); 
    185185        $month_values = array(); 
     
    188188            $month_values[''] = ''; 
    189189        } 
    190         for ($i = 1; $i <= 12; $i++) { 
     190        for ($i = 1; $i <= 12; ++$i) { 
    191191            $month_names[$i] = strftime($month_format, mktime(0, 0, 0, $i, 1, 2000)); 
    192192            $month_values[$i] = strftime($month_value_format, mktime(0, 0, 0, $i, 1, 2000)); 
     
    225225            $day_values[''] = ''; 
    226226        } 
    227         for ($i = 1; $i <= 31; $i++) { 
     227        for ($i = 1; $i <= 31; ++$i) { 
    228228            $days[] = sprintf($day_format, $i); 
    229229            $day_values[] = sprintf($day_value_format, $i); 
     
    255255 
    256256    if ($display_years) { 
    257         $field_separator_count++; 
     257        ++$field_separator_count; 
    258258        if (null !== $field_array){ 
    259259            $year_name = $field_array . '[' . $prefix . 'Year]'; 
     
    303303 
    304304    // Loop thru the field_order field 
    305     for ($i = 0; $i <= 2; $i++){ 
     305    for ($i = 0; $i <= 2; ++$i){ 
    306306        $c = substr($field_order, $i, 1); 
    307307        switch ($c){ 
Note: See TracChangeset for help on using the changeset viewer.