Permalink
Browse files

Add a changelog entry for issue #1605 (pull #1606) and remove some sp…

…aces
  • Loading branch information...
1 parent 44fb02f commit 685cdd7a28a8e7ec5a3769e2b0d2cdd40c8f6bf9 @narfbg narfbg committed Jul 13, 2012
Showing with 5 additions and 4 deletions.
  1. +4 −4 system/libraries/Pagination.php
  2. +1 −0 user_guide_src/source/changelog.rst
@@ -231,7 +231,7 @@ public function create_links()
if ($this->reuse_query_string === TRUE)
{
$get = $CI->input->get();
-
+
// Unset the controll, method, old-school routing options
unset($get['c'], $get['m'], $get[$this->query_string_segment]);
@@ -248,9 +248,9 @@ public function create_links()
if ($this->first_link !== FALSE && $this->cur_page > ($this->num_links + 1))
{
$first_url = ($this->first_url === '') ? $this->base_url : $this->first_url;
-
+
// Take the general parameters, and squeeze this pagination-page attr in there for JS fw's
- $attributes = sprintf('%s %s="%d"', $this->_attributes, $this->data_page_attr, 1);
+ $attributes = sprintf('%s %s="%d"', $this->_attributes, $this->data_page_attr, 1);
$output .= $this->first_tag_open.'<a href="'.$first_url.'"'.$attributes.$this->_attr_rel('start').'>'
.$this->first_link.'</a>'.$this->first_tag_close;
@@ -392,4 +392,4 @@ protected function _attr_rel($type)
}
/* End of file Pagination.php */
-/* Location: ./system/libraries/Pagination.php */
+/* Location: ./system/libraries/Pagination.php */
@@ -315,6 +315,7 @@ Bug fixes for 3.0
- Fixed a bug in :doc:`Query Builder <database/query_builder>` method join() where literal values were escaped as if they were fields.
- Fixed a bug (#135) - PHP Error logging was impossible without the errors being displayed.
- Fixed a bug (#1613) - :doc:`Form Helper <helpers/form_helper>` functions ``form_multiselect()``, ``form_dropdown()`` didn't properly handle empty array option groups.
+- Fixed a bug (#1605) - :doc:`Pagination Library <libraries/pagination>` produced incorrect *previous* and *next* link values.
Version 2.1.2
=============

0 comments on commit 685cdd7

Please sign in to comment.