From 9875bc10d14d50f543f4aab3ce4e9dae060b8c23 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 29 Jan 2008 15:53:49 -0500 Subject: [PATCH] avoid redundant recentpages action on the recentchanges page itself --- IkiWiki/Render.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; } -- 2.26.2