Author: ornicar2
Date: 2010-01-18 17:49:40 +0100 (Mon, 18 Jan 2010)
New Revision: 26826
Modified:
plugins/diemPlugin/trunk/dmFrontPlugin/lib/pager/dmFrontPagerView.php
Log:
[Diem]
- fixed dmFrontDoctrinePager fails to display next link on first page when
nbLinks == 0 - closes #8125
Modified: plugins/diemPlugin/trunk/dmFrontPlugin/lib/pager/dmFrontPagerView.php
===================================================================
--- plugins/diemPlugin/trunk/dmFrontPlugin/lib/pager/dmFrontPagerView.php
2010-01-18 16:43:35 UTC (rev 26825)
+++ plugins/diemPlugin/trunk/dmFrontPlugin/lib/pager/dmFrontPagerView.php
2010-01-18 16:49:40 UTC (rev 26826)
@@ -134,7 +134,7 @@
{
$html = '';
- if (1 !== $this->pager->getPage())
+ if ($this->pager->getPage() !== $this->pager->getFirstPage())
{
if($first = $this->getOption('first'))
{
@@ -174,7 +174,7 @@
{
$html = '';
- if ($this->pager->getPage() != $this->getCurrentMaxLink())
+ if ($this->pager->getPage() != $this->pager->getLastPage())
{
if($next = $this->getOption('next'))
{
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.