]> git.koha-community.org Git - koha.git/commit
Bugfix pagination_bar to work with only one param/value pair.
authorJoe Atzberger <joe.atzberger@liblime.com>
Thu, 10 Jul 2008 13:31:16 +0000 (08:31 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 10 Jul 2008 14:11:44 +0000 (09:11 -0500)
commit31ef440741dc2f76bd4fffac902770b10e716350
treee739799687fc01db602c980a4b1c410a62262431
parentf2c3c027bd055c38d06feaaacb9f610ca2ae9aa5
Bugfix pagination_bar to work with only one param/value pair.

A valid test of this patch is this command:
perl -MC4::Output -e 'print pagination_bar("my/script?query=foobar",5,2,"page"),"\n";'

The output before patch begins:
&nbsp;<a href="my/script?query=foobar?page=1" rel="start">&lt;&lt;</a>
and AFTER patch:
&nbsp;<a href="my/script?query=foobar&amp;page=1" rel="start">&lt;&lt;</a>

The double "?" in QUERY_STRING are now avoided.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Output.pm