summaryrefslogtreecommitdiffstats
path: root/system/libraries/Pagination.php
AgeCommit message (Collapse)AuthorFilesLines
2022-03-03Merge branch '3.1-stable' into developAndrey Andreev1-1/+2
2022-03-02[ci skip] Update copyright noticesAndrey Andreev1-2/+3
2022-01-05Drop some previously deprecated functionalityAndrey Andreev1-8/+0
2020-07-09[ci skip] Merge pull request #5970 from sapics/fix/user-guide-urlAndrey Andreev1-1/+1
Fix user guide url
2020-06-24Fix user guide urlsapics1-1/+1
Replace from https://codeigniter.com/user_guide/* to https://codeigniter.com/userguide3/*
2019-01-02Merge pull request #5662 from jim-parry/copyright2019Instructor, BCIT1-3/+3
Update copyright date to 2019
2018-12-27Update copyright date to 2019Jim Parry1-2/+2
2018-05-18http:// to https://Mehdi Bounya1-3/+3
2018-01-09[ci skip] Merge pull request #5376 from jim-parry/copyright-updateAndrey Andreev1-2/+2
Annual copyright update Conflicts resolved: system/libraries/Cache/drivers/Cache_apcu.php
2018-01-09Annual copyright updateMaster Yoda1-2/+2
2017-11-28[ci skip] Polish changes from PR #5342Andrey Andreev1-1/+3
2017-11-28[ci skip] Merge pull request #5342 from aanbar/pagination-bc-fixAndrey Andreev1-2/+3
Preserve attributes from pagination config files Related: #4454
2017-11-28[ci skip] Polish changes from PR #5342Andrey Andreev1-1/+3
2017-11-27Enable rel attribute by default #4000Ahmad Anbar1-0/+2
2017-11-26remove spacesAhmad Anbar1-1/+1
2017-11-26Fix issue #4454Ahmad Anbar1-3/+2
2017-01-17[ci skip] Merge pull request #4986 from ka7/feature/spellingAndrey Andreev1-1/+1
Spelling fixes in comment blocks and docs
2017-01-16spelling fixesklemens1-1/+1
2017-01-03Update copyright data to 2017Master Yoda1-2/+2
2016-12-31Update copyright data to 2017Master Yoda1-2/+2
2016-01-20[ci skip] Remove a trailing space from latest PR mergeAndrey Andreev1-1/+1
2016-01-20Respect $config['cur_page'] variable for paginationjekkos1-1/+5
After upgrading to CI3 I noticed that developers are able to determine the current page counter for pagination based on * Explicit query string parameters * URI segment configuration In earlier versions a developer could still set the current page counter in the pagination lib directly which is useful if you want to use pagination with HTTP POST instead of GET. This could be done by passing $config['cur_page'] = '10'; to the pagination function for link generation. Currently this code has changed and will always try to check whether the uri segment is a valid number or not, even if the cur_page variable was passed in the associative array, and fallback to zero if it fails to validate that result. This can be easily resolved by checking whether the counter was already set with a valid number from the $config array before trying to resolve it from the uri segment. This fix give a developer more flexibility and stop CI from overwriting the externally set value with an incorrect one. Signed-off-by: jekkos <jeroen.peelaerts@gmail.com>
2016-01-20[ci skip] Remove a trailing space from latest PR mergeAndrey Andreev1-1/+1
2016-01-20Respect $config['cur_page'] variable for paginationjekkos1-1/+5
After upgrading to CI3 I noticed that developers are able to determine the current page counter for pagination based on * Explicit query string parameters * URI segment configuration In earlier versions a developer could still set the current page counter in the pagination lib directly which is useful if you want to use pagination with HTTP POST instead of GET. This could be done by passing $config['cur_page'] = '10'; to the pagination function for link generation. Currently this code has changed and will always try to check whether the uri segment is a valid number or not, even if the cur_page variable was passed in the associative array, and fallback to zero if it fails to validate that result. This can be easily resolved by checking whether the counter was already set with a valid number from the $config array before trying to resolve it from the uri segment. This fix give a developer more flexibility and stop CI from overwriting the externally set value with an incorrect one. Signed-off-by: jekkos <jeroen.peelaerts@gmail.com>
2016-01-11[ci skip] Update ellislab.com links to https tooAndrey Andreev1-1/+1
2016-01-11[ci skip] Update codeigniter.com links to httpsAndrey Andreev1-2/+2
2016-01-11[ci skip] Bump year to 2016Andrey Andreev1-2/+2
2015-09-16Fix #4116Andrey Andreev1-6/+6
Close #4117
2015-07-26Fix #4000Andrey Andreev1-1/+2
2015-03-30Fixes pagination with relative URLMiguel González1-1/+1
When base_url is a URL based on protocol, like "//www.google.com" the double slash regex kills the first "//".
2015-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20Pagination: Add 'use_global_url_suffix' settingAndrey Andreev1-0/+12
Resolves issue #1887
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-1/+1
'Class Loaded' type of messages flood log files when log_threshold is set to 2 (debug). They're now logged as 'info' level. This is manually applying PR #1528, which was created to do the same thing, but became outdated.
2015-01-09Bulk (mostly documentation) updateAndrey Andreev1-3/+3
- Remove PHP version from license notices - Bump year number in copyright notices - Recommend PHP 5.4 or newer to be used - Tell Travis-CI to test on PHP 5.3.0 instead of the latest 5.3 version Related: #3450
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
2014-08-01Make CI_Pagination properties per_page, cur_page publicAndrey Andreev1-38/+38
Useful if you want to make calculations based on them.
2014-06-13Make 'num_links=0' configuration available in Pagination libraryTakayuki Sakai1-4/+4
Changed conditions when making 'first' and 'last' links
2014-06-13Revert "Make num_links=0 in pagination library possible to configure"Takayuki Sakai1-15/+9
This reverts commit a01924d2cc2d63d2bddbee85a18b423b88a9b19e.
2014-06-13Make num_links=0 in pagination library possible to configureTakayuki Sakai1-9/+15
2014-02-18Fixed variable scope.Ahmad Anbar1-1/+1
2014-02-17Micro-optimizationsAndrey Andreev1-13/+23
2014-02-17Fix #2884Andrey Andreev1-1/+1
2014-02-13Fix #2878Andrey Andreev1-1/+1
2014-02-13Fix #2364Andrey Andreev1-19/+21
2014-02-13Add language translation support to CI_Pagination (#1589)Andrey Andreev1-7/+14
2014-02-112013 > 2014darwinel1-1/+1
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-02-08Add method chaining support to Calendar & Pagination libsAndrey Andreev1-1/+3
2013-10-14Fix #2674Andrey Andreev1-1/+2
2013-02-08[ci skip] Remove unnecessary string casts in PaginationAndrey Andreev1-3/+2
2013-01-29Replace is_numeric() with ctype_digit()Eric Roberts1-6/+13
Signed-off-by: Eric Roberts <eric@cryode.com>