Author Topic: HACK: Fix pagination problem with CSV scripts  (Read 1433 times)

0 Members and 1 Guest are viewing this topic.

Offline irocwebs

  • Jr. Member
  • **
  • Posts: 24
    • Iroc Web Design Services
HACK: Fix pagination problem with CSV scripts
« on: May 29, 2011, 11:18:37 PM »
Use at your own risk. Make a backup of your script(s) before making any changes.

This should work with most of the scripts to fix the pagination bug - In the scripts, under #set page selector:

Change:

Code: [Select]
if($pageSelectorRange){
$pageEnd = int($pageEnd+0.5);

with:

Code: [Select]
if($pageSelectorRange){
use POSIX qw(ceil);
$pageEnd = ceil($pageEnd);

Offline Jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 1018
    • slipdex
Re: HACK: Fix pagination problem with CSV scripts
« Reply #1 on: May 31, 2011, 05:29:11 AM »
Oh, nice! That was so simple how did we miss that before? Nice catch! We need to send a mass e-mail out to everyone!

Jason
Founder of www.slipdex.com

Offline EZ

  • Hero Member
  • *****
  • Posts: 1081
    • Babelnotes.be
Re: HACK: Fix pagination problem with CSV scripts
« Reply #2 on: May 31, 2011, 06:06:20 PM »
Can others confirm that this really works?

No bad word the topic starter, but we need to make sure it works for most people.

Thanks for the help,
EZ
« Last Edit: May 31, 2011, 06:12:14 PM by EZ »