]> iEval git - gruntmaster-page.git/commitdiff
Remove trailing & from prev/next page links in log
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 15 Feb 2015 16:27:02 +0000 (18:27 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 15 Feb 2015 16:27:02 +0000 (18:27 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index bdd20c2d183439a6ef7635abc3bf38b075282e82..cd65088a44a40c83fb7e7b21ac3d833897f2788e 100644 (file)
@@ -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}");
 }
This page took 0.027171 seconds and 4 git commands to generate.