PHP-Pagination
PHP-Pagination copied to clipboard
Duplicated code in render.inc.php
Could you explain this lines, please?
$href = preg_replace(
array('/=$/', '/=&/'),
array('', '&'),
$href
);
I have found that those lines are used multiple times in render.inc.php but not sure why you need this and what this does?
I actually can't remember. It's been a few years. I'd log out the $href
value before and after that call and see what you notice.
In render.inc.php
// if there are pages to be shown if ( $pages > 1 ) {
Is this "1" should be "0", I change it to 0 and it works