diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2011-09-22 01:54:18 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2011-09-22 01:54:18 +0200 |
commit | 8ff4623fcd2d0d2fcde10831ce9fbc857eb2347a (patch) | |
tree | 7268c71d103418d54c8256cbe6434b24398b29d0 /system/libraries | |
parent | 246cd1795755e08e1cdf78a0fb42c05af6c30461 (diff) | |
parent | 48b2301d7e8cc2a4cb164a4bc24c59b656f4f49b (diff) |
Merge pull request #472 from garthkerr/develop
Added a condition so that the previous link respects use_page_numbers con
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Pagination.php | 2 |
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; } |