Add (temp) fix for cur_page conuter in CI pagination libary (#284)

Fix .htaccess file
This commit is contained in:
jekkos
2016-01-06 19:29:33 +01:00
parent 3c22f9069b
commit 72fc36c8f5
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ RewriteRule ^(.*)$ index.php?/$1 [L]
# disable directory browsing
# For security reasons, Option all cannot be overridden.
#Options All -Indexes
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes
Options +ExecCGI +Includes +IncludesNOEXEC +SymLinksIfOwnerMatch -Indexes
# prevent folder listing
IndexIgnore *
@@ -29,4 +29,4 @@ IndexIgnore *
order allow,deny
deny from all
satisfy All
</Files>
</Files>

View File

@@ -497,7 +497,7 @@ class CI_Pagination {
{
$this->cur_page = $this->CI->input->get($this->query_string_segment);
}
else
else if (!$this->cur_page)
{
// Default to the last segment number if one hasn't been defined.
if ($this->uri_segment === 0)