diff options
author | garthkerr <garthkerr@gmail.com> | 2011-09-22 01:52:50 +0200 |
---|---|---|
committer | garthkerr <garthkerr@gmail.com> | 2011-09-22 01:52:50 +0200 |
commit | 48b2301d7e8cc2a4cb164a4bc24c59b656f4f49b (patch) | |
tree | 7268c71d103418d54c8256cbe6434b24398b29d0 /system/libraries/Pagination.php | |
parent | 246cd1795755e08e1cdf78a0fb42c05af6c30461 (diff) |
Added a condition so that the previous link respects use_page_numbers configuration.
Diffstat (limited to 'system/libraries/Pagination.php')
-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; } |