mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-16 04:50:09 -04:00
Add (temp) fix for cur_page conuter in CI pagination libary (#284)
Fix .htaccess file
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user