Part of the EllisLab Network
   
 
Bug in Pagination Class
Posted: 08 November 2006 01:40 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  22
Joined  11-05-2006

Hey…
there is a bug in the pagination class or so I think.  red face

When I set

$config['num_links'] = 1;

to something lesser than 2… it puts a previous link on the first page with a negative value (The value depends on what you have you $config[‘per_page’] set to).

I prepared a little demonstration on my webpages wink Show me the bug wink

P.S. I would even suggest a little restructure of that class to make it easier to customize… everything is just in one big function mad

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 64453 Total Logged-in Users: 22
Total Topics: 80961 Total Anonymous Users: 0
Total Replies: 435696 Total Guests: 188
Total Posts: 516657    
Members ( View Memberlist )