Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed #1817 Pagination class error #1820

Merged
merged 1 commit into from

2 participants

@appleboy

Signed-off-by: Bo-Yi Wu appleboy.tw@gmail.com

@appleboy appleboy Fixed #1817 Pagination class error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
6b4e362
@alexbilbie alexbilbie merged commit 3596558 into bcit-ci:develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 21, 2012
  1. @appleboy

    Fixed #1817 Pagination class error

    appleboy authored
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  system/libraries/Pagination.php
View
3  system/libraries/Pagination.php
@@ -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).'&amp;'.$this->query_string_segment.'=';
+ $segment = (strpos($this->base_url, '?')) ? '&amp;' : '?';
+ $this->base_url = rtrim($this->base_url).$segment.$this->query_string_segment.'=';
}
else
{
Something went wrong with that request. Please try again.