|
@@ 47-61 (lines=15) @@
|
| 44 |
|
// Determine the current page number. |
| 45 |
|
$CI =& get_instance(); |
| 46 |
|
|
| 47 |
|
if ($CI->config->item('enable_query_strings') === TRUE OR $this->page_query_string === TRUE) { |
| 48 |
|
if ($CI->input->get($this->query_string_segment) != $base_page) { |
| 49 |
|
$this->cur_page = $CI->input->get($this->query_string_segment); |
| 50 |
|
|
| 51 |
|
// Prep the current page - no funny business! |
| 52 |
|
$this->cur_page = (int) $this->cur_page; |
| 53 |
|
} |
| 54 |
|
} else { |
| 55 |
|
if ($CI->uri->segment($this->uri_segment) != $base_page) { |
| 56 |
|
$this->cur_page = $CI->uri->segment($this->uri_segment); |
| 57 |
|
|
| 58 |
|
// Prep the current page - no funny business! |
| 59 |
|
$this->cur_page = (int) $this->cur_page; |
| 60 |
|
} |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
// Set current page to 1 if using page numbers instead of offset |
| 64 |
|
if ($this->use_page_numbers AND $this->cur_page == 0) { |
|
@@ 219-233 (lines=15) @@
|
| 216 |
|
// Determine the current page number. |
| 217 |
|
$CI = &get_instance(); |
| 218 |
|
|
| 219 |
|
if ($CI->config->item('enable_query_strings') === TRUE OR $this->page_query_string === TRUE) { |
| 220 |
|
if ($CI->input->get($this->query_string_segment) != 0) { |
| 221 |
|
$this->cur_page = $CI->input->get($this->query_string_segment); |
| 222 |
|
|
| 223 |
|
// Prep the current page - no funny business! |
| 224 |
|
$this->cur_page = (int) $this->cur_page; |
| 225 |
|
} |
| 226 |
|
} else { |
| 227 |
|
if ($CI->uri->segment($this->uri_segment) != 0) { |
| 228 |
|
$this->cur_page = $CI->uri->segment($this->uri_segment); |
| 229 |
|
|
| 230 |
|
// Prep the current page - no funny business! |
| 231 |
|
$this->cur_page = (int) $this->cur_page; |
| 232 |
|
} |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
$this->num_links = (int) $this->num_links; |
| 236 |
|
|