Development

Changeset 8680

You must first sign up to be able to contribute.

Changeset 8680

Show
Ignore:
Timestamp:
04/29/08 19:03:12 (1 year ago)
Author:
FabianLange
Message:

fixed display of last index. therefore setPage should accept 0 as valid page. (refs# 2648)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/addon/sfPager.class.php

    r6763 r8680  
    4545    $this->setClass($class); 
    4646    $this->setMaxPerPage($maxPerPage); 
    47     $this->setPage(1); 
    4847    $this->parameterHolder = new sfParameterHolder(); 
    4948  } 
     
    253252    $page = intval($page); 
    254253 
    255     $this->page = ($page <= 0) ? 1 : $page; 
     254    $this->page = ($page < 0) ? 1 : $page; 
    256255  } 
    257256 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.