From bbc5ec2a660c960873f7c41437859fa1d82703d6 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 2 May 2007 11:34:08 +0000 Subject: $this->base_url = preg_replace("/(.+?)\/*$/", "\\1/", $this->base_url); changed to $this->base_url = rtrim($this->base_url, '/') .'/'; --- system/libraries/Pagination.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/libraries/Pagination.php') diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index 8ea0dab19..c5c718dee 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php @@ -146,8 +146,8 @@ class CI_Pagination { $end = (($this->cur_page + $this->num_links) < $num_pages) ? $this->cur_page + $this->num_links : $num_pages; // Add a trailing slash to the base URL if needed - $this->base_url = preg_replace("/(.+?)\/*$/", "\\1/", $this->base_url); - + $this->base_url = rtrim($this->base_url, '/') .'/'; + // And here we go... $output = ''; -- cgit v1.2.3-24-g4f1b