avoid redundant recentpages action on the recentchanges page itself

master
Joey Hess 2008-01-29 15:53:49 -05:00
parent 8b31c53366
commit 9875bc10d1
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ sub genpage ($$) { #{{{
$actions++;
}
if ($config{rcs} && exists $config{recentchangespage}) {
if ($config{rcs} && exists $config{recentchangespage} &&
$page ne $config{recentchangespage}) {
$template->param(recentchangesurl => urlto($config{recentchangespage}, $page));
$actions++;
}