summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorgarthkerr <garthkerr@gmail.com>2011-09-22 01:52:50 +0200
committergarthkerr <garthkerr@gmail.com>2011-09-22 01:52:50 +0200
commit48b2301d7e8cc2a4cb164a4bc24c59b656f4f49b (patch)
tree7268c71d103418d54c8256cbe6434b24398b29d0 /system/libraries
parent246cd1795755e08e1cdf78a0fb42c05af6c30461 (diff)
Added a condition so that the previous link respects use_page_numbers configuration.
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Pagination.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index f190d55fd..eff754a1b 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -229,7 +229,7 @@ class CI_Pagination {
{
$i = ($this->use_page_numbers) ? $uri_page_number - 1 : $uri_page_number - $this->per_page;
- if ($i == 0 && $this->first_url != '')
+ if (($i == 0 OR ($this->use_page_numbers && $i == 1)) 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;
}