1
0
mirror of synced 2025-01-18 06:21:40 +03:00

fixed code formatting

This commit is contained in:
zYne 2007-11-25 23:59:54 +00:00
parent 18fc6b4aa6
commit 8711b28765
2 changed files with 3 additions and 4 deletions

View File

@ -184,8 +184,7 @@ class Doctrine_Pager
{ {
$this->lastPage = $page; $this->lastPage = $page;
if ($this->getPage() > $page) if ($this->getPage() > $page) {
{
$this->_setPage($page); $this->_setPage($page);
} }
} }
@ -346,7 +345,7 @@ class Doctrine_Pager
protected function setQuery($query) protected function setQuery($query)
{ {
if (is_string($query)) { if (is_string($query)) {
$query = Doctrine_Query::create()->from($query); $query = Doctrine_Query::create()->parseQuery($query);
} }
$this->query = $query; $this->query = $query;

View File

@ -102,7 +102,7 @@ class Doctrine_Pager_Range_Jumping extends Doctrine_Pager_Range
$endPage = ($startPage + $this->getChunkLength()) - 1; $endPage = ($startPage + $this->getChunkLength()) - 1;
// Check for EndPage out-range // Check for EndPage out-range
if ( $endPage > $pager->getLastPage() ) { if ($endPage > $pager->getLastPage()) {
$endPage = $pager->getLastPage(); $endPage = $pager->getLastPage();
} }