avoid redundant recentpages action on the recentchanges page itself
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 20:53:49 +0000 (15:53 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 20:53:49 +0000 (15:53 -0500)
IkiWiki/Render.pm

index ed359bdd77f9dccc1f034cfaca3878ad938f0063..4495b9cfd97524cdfd6f9084cb285b198b44c533 100644 (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++;
        }