[ci skip] Remove unnecessary string casts in Pagination
diff --git a/application/config/mimes.php b/application/config/mimes.php
index 0129c3c..5b8ceff 100644
--- a/application/config/mimes.php
+++ b/application/config/mimes.php
@@ -176,4 +176,4 @@
);
/* 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 438d6c4..10fb29d 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -449,8 +449,7 @@
// 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 @@
$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 !== '')