heres the codes on my global
sub {
my $nh = shift;
my $mh = shift;
return {search_offset => 0 } unless $nh =~ /^\d+$/;
$mh ||= $CFG->{search_maxhits};
return { search_offset => ($nh - 1) * $mh };
}
P.s. i just did the copy and past from your post to my global file.
Sorry to ask that stupid guestion,but on my templates directory theres a globals.txt file do i have to add that code there or create a new global.txt on the templates directory?
again sorry for the guestion,but im seriously a total newbie on this.
Thanks again.
sub {
my $nh = shift;
my $mh = shift;
return {search_offset => 0 } unless $nh =~ /^\d+$/;
$mh ||= $CFG->{search_maxhits};
return { search_offset => ($nh - 1) * $mh };
}
P.s. i just did the copy and past from your post to my global file.
Sorry to ask that stupid guestion,but on my templates directory theres a globals.txt file do i have to add that code there or create a new global.txt on the templates directory?
again sorry for the guestion,but im seriously a total newbie on this.
Thanks again.