Welcome Guest, Not a member yet? Register   Sign In
Pagination class
#1

[eluser]innocast[/eluser]
In libraries/Pagination.php

At line 213:
Code:
$output .= $this->num_tag_open.'<a >base_url.$n.'">'.$loop.'</a>'.$this->num_tag_close;

Shouldn't this be:
Code:
$output .= $this->num_tag_open . anchor($this->base_url.$n,$loop) . $this->num_tag_close;

This is because the links generated doesn't follow the rest of the sites link. Me my self got .html at the end of every link, and that's not displayed.

Modified and tested successfully.
#2

[eluser]innocast[/eluser]
Also, is it very good to use /10 for the first page (if per page is set to 10)? Modified the code to use 1, 2, 3 etc... Contact me for more information regarding this matter.




Theme © iAndrew 2016 - Forum software by © MyBB