summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-09-22 01:54:18 +0200
committerEric Barnes <eric@ericlbarnes.com>2011-09-22 01:54:18 +0200
commit8ff4623fcd2d0d2fcde10831ce9fbc857eb2347a (patch)
tree7268c71d103418d54c8256cbe6434b24398b29d0
parent246cd1795755e08e1cdf78a0fb42c05af6c30461 (diff)
parent48b2301d7e8cc2a4cb164a4bc24c59b656f4f49b (diff)
Merge pull request #472 from garthkerr/develop
Added a condition so that the previous link respects use_page_numbers con
-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;
}