Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Pager Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Sep 3, 2014
1 parent 4481124 commit 7f76bf5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions module/Application/view/partial/paginator.phtml
Expand Up @@ -8,7 +8,7 @@
<!-- previous page link -->
<?php if(isset($this->previous)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->previous; ?>">previous</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->previous; ?>">previous</a>
</li>
<?php else: ?>
<li class="disabled">
Expand All @@ -19,15 +19,15 @@
<!-- first page link -->
<?php if(isset($this->first)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->first; ?>">first</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->first; ?>">first</a>
</li>
<?php endif; ?>

<!-- numbered page links -->
<?php foreach($this->pagesInRange as $page): ?>
<?php if($page != $this->current): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $page; ?>"><?php echo $page; ?></a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $page; ?>"><?php echo $page; ?></a>
</li>
<?php else: ?>
<li class="active">
Expand All @@ -39,14 +39,14 @@
<!-- last page link -->
<?php if(isset($this->last)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->last; ?>">last</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->last; ?>">last</a>
</li>
<?php endif; ?>

<!-- next page link -->
<?php if(isset($this->next)): ?>
<li>
<a href="<?php echo $this->url($this->route); ?>?page=<?php echo $this->next; ?>">next</a>
<a href="<?php echo $this->url($this->route, array(), null, true); ?>?page=<?php echo $this->next; ?>">next</a>
</li>
<?php else: ?>
<li class="disabled">
Expand Down

0 comments on commit 7f76bf5

Please sign in to comment.