summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-02-08 21:06:00 +0100
committerAndrey Andreev <narf@bofh.bg>2013-02-08 21:06:00 +0100
commit870f11351b6e7a916bf30aa22b4a8c3dd49bf33f (patch)
tree7373ee6d06bd8adb4c3fd8671de92f27dfc0594e /system
parent4615416f9f6d721a8a8890c9d08e57c5b475f4d2 (diff)
[ci skip] Remove unnecessary string casts in Pagination
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Pagination.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index 438d6c477..10fb29dbd 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -449,8 +449,7 @@ class CI_Pagination {
// Are we using query strings?
if ($CI->config->item('enable_query_strings') === TRUE OR $this->page_query_string === TRUE)
{
- // Cast as string for use in ctype_digit() later.
- $this->cur_page = (string) $CI->input->get($this->query_string_segment);
+ $this->cur_page = $CI->input->get($this->query_string_segment);
}
else
{
@@ -460,7 +459,7 @@ class CI_Pagination {
$this->uri_segment = count($CI->uri->segment_array());
}
- $this->cur_page = (string) $CI->uri->segment($this->uri_segment);
+ $this->cur_page = $CI->uri->segment($this->uri_segment);
// Remove any specified prefix/suffix from the segment.
if ($this->prefix !== '' OR $this->suffix !== '')