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/class.Paging.inc.php

    r795 r7655  
    124124                        $end = min($start + $this->itemsPerPage, $totalItems); 
    125125                        $this->items = array(); 
    126                         for ($i = $start; $i < $end; $i++) 
     126                        for ($i = $start; $i < $end; ++$i) 
    127127                                $this->items[] = $pItems[$i]; 
    128128                } 
     
    147147                $charSeparator = empty($this->newRequest) ? "" : "&amp;"; 
    148148 
    149                 for ($i = 0; $i < $this->numberOfPages; $i++) 
     149                for ($i = 0; $i < $this->numberOfPages; ++$i) 
    150150                { 
    151151                        $page = $i; 
     
    178178                $firstPage = max(0, $this->currentPage - $numberOfLinks); 
    179179                $lastPage = min($this->currentPage + $numberOfLinks, $this->numberOfPages); 
    180                 for ($i = $firstPage; $i < $lastPage; $i++) 
     180                for ($i = $firstPage; $i < $lastPage; ++$i) 
    181181                        $output[] = $allPaginationResults[$i]; 
    182182 
     
    225225                } 
    226226 
    227                 for ($i = 0; $i < count($paginationLinks); $i++) 
     227                for ($i = 0; $i < count($paginationLinks); ++$i) 
    228228                { 
    229229                        $tmp = $paginationLinks[$i]; 
Note: See TracChangeset for help on using the changeset viewer.