or download this
$tmpl_results->param
(
...
NEXT => ($last >= $rows ? "" : "first=" . ($first + $config
+{INCREMENT}) . "&last=" . ($last + $config{INCREMENT})),
LAST => ($last >= $rows ? "" : "first=" . ($rows - $config{
+INCREMENT}) . "&last=$rows"),
);