From: Joey Hess Date: Tue, 29 Jan 2008 20:53:49 +0000 (-0500) Subject: avoid redundant recentpages action on the recentchanges page itself X-Git-Tag: 2.30~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9875bc10d14d50f543f4aab3ce4e9dae060b8c23;p=ikiwiki.git avoid redundant recentpages action on the recentchanges page itself --- 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++; }