summaryrefslogtreecommitdiffstats
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
parent4615416f9f6d721a8a8890c9d08e57c5b475f4d2 (diff)
[ci skip] Remove unnecessary string casts in Pagination
-rw-r--r--application/config/mimes.php2
-rw-r--r--system/libraries/Pagination.php5
2 files changed, 3 insertions, 4 deletions
diff --git a/application/config/mimes.php b/application/config/mimes.php
index 0129c3ca1..5b8ceff2e 100644
--- a/application/config/mimes.php
+++ b/application/config/mimes.php
@@ -176,4 +176,4 @@ return array(
);
/* End of file mimes.php */
-/* Location: ./application/config/mimes.php */
+/* Location: ./application/config/mimes.php */ \ No newline at end of file
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 !== '')