From: Marius Gavrilescu Date: Sun, 15 Feb 2015 16:27:02 +0000 (+0200) Subject: Remove trailing & from prev/next page links in log X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=8678e0dd688e52919aa6f5d03c6466d3e06a7957;p=gruntmaster-page.git Remove trailing & from prev/next page links in log --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index bdd20c2..cd65088 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -249,7 +249,7 @@ sub process_log { next unless $elem; delete $args{args}{page}; my $str = join '&', map { $_ . '=' . $args{args}{$_} } keys %{$args{args}}; - $elem->find('a')->edit_href(sub{s/$/&$str/}); + $elem->find('a')->edit_href(sub{s/$/&$str/}) if $str; } $tree->fclass('current')->replace_content("Page $args{current_page} of $args{last_page}"); }