summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authordixy <dixy@dicssy.net>2011-12-19 22:26:12 +0100
committerdixy <dixy@dicssy.net>2011-12-19 22:26:12 +0100
commit8bd8f687827454f83a5512b96bb0f632178a08a6 (patch)
tree7eef64257b09ee37338c85ca4f60dd6c2502b432 /system/libraries
parentdc3e4bedb39afe30d95635e5258aaecec4dfd74c (diff)
Prev link and 1 link don't have the same url with use_page_numbers=TRUE
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Pagination.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index eea953ae4..cc73e0d2f 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -236,13 +236,13 @@ class CI_Pagination {
{
$i = ($this->use_page_numbers) ? $uri_page_number - 1 : $uri_page_number - $this->per_page;
- if (($i == 0 OR ($this->use_page_numbers && $i == 1)) AND $this->first_url != '')
+ if ($i == $base_page AND $this->first_url != '')
{
$output .= $this->prev_tag_open.'<a '.$this->anchor_class.'href="'.$this->first_url.'">'.$this->prev_link.'</a>'.$this->prev_tag_close;
}
else
{
- $i = ($i == 0) ? '' : $this->prefix.$i.$this->suffix;
+ $i = ($i == $base_page) ? '' : $this->prefix.$i.$this->suffix;
$output .= $this->prev_tag_open.'<a '.$this->anchor_class.'href="'.$this->base_url.$i.'">'.$this->prev_link.'</a>'.$this->prev_tag_close;
}