summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-29 15:53:49 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-29 15:53:49 -0500
commit9875bc10d14d50f543f4aab3ce4e9dae060b8c23 (patch)
treee672607f72f08b183f85f09e98938a3b9f447cc5
parent8b31c53366bbee51b36501443eafd0f712ee6a4c (diff)
avoid redundant recentpages action on the recentchanges page itself
-rw-r--r--IkiWiki/Render.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index ed359bdd7..4495b9cfd 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -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++;
}