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-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/9875bc10d14d50f543f4aab3ce4e9dae060b8c23?hp=8b31c53366bbee51b36501443eafd0f712ee6a4c 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++; }