Skip to content

Commit

Permalink
Merge pull request bcit-ci#1820 from appleboy/pagination
Browse files Browse the repository at this point in the history
Fixed bcit-ci#1817 Pagination class error
  • Loading branch information
alexbilbie committed Sep 21, 2012
2 parents 8f72bdc + 6b4e362 commit 3596558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/libraries/Pagination.php
Expand Up @@ -215,7 +215,8 @@ public function create_links()
// string. If post, add a trailing slash to the base URL if needed
if ($CI->config->item('enable_query_strings') === TRUE OR $this->page_query_string === TRUE)
{
$this->base_url = rtrim($this->base_url).'&'.$this->query_string_segment.'=';
$segment = (strpos($this->base_url, '?')) ? '&' : '?';
$this->base_url = rtrim($this->base_url).$segment.$this->query_string_segment.'=';
}
else
{
Expand Down

0 comments on commit 3596558

Please sign in to comment.