pluf2

pluf2 Commit Details


Date:2010-12-10 05:42:42 (14 years 11 days ago)
Author:Thomas Riché
Branch:master
Commit:272d84843fd833f6a6c5a08c30b7e366736257b8
Parents: 95295728eaceb39655242242ae52f7bbff47e32a
Message:Cosmectic changes to respect conventions

Changes:

File differences

src/Pluf/Paginator.php
475475
476476
477477
478
479
480
481
478
479
480
481
482482
483483
484484
$nb_pa = floor($this->max_number_pages/2);
$imin = $this->current_page - $nb_pa;
$imax = $this->current_page + $nb_pa;
// We put the separator if $imin is at leat greater than 1+$nb_pa
if($imin>2) $out .= ' '.$this->max_number_pages_separator.' ';
if($imin<=1) $imin=2;
if($imax>=$this->page_number) $imax = $this->page_number - 1;
// We put the separator if $imin is at leat greater than 2
if ($imin > 2) $out .= ' '.$this->max_number_pages_separator.' ';
if ($imin <= 1) $imin=2;
if ($imax >= $this->page_number) $imax = $this->page_number - 1;
} else {
$imin = 2;
$imax = $this->page_number - 1;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05510s using 13 queries.