summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-06 03:57:43 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-06 03:57:43 +0000
commitafa57f5c074ed297c29eb1030f1ec07b762780d9 (patch)
tree53d846bba9eac890b54394d3ff1a26f9b6694bbc /IkiWiki/Plugin
parent746f6fdffbea6a9f60dafd1e4efc2d1049e9d113 (diff)
* Remove dups from the brokenlinks list.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/brokenlinks.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/brokenlinks.pm b/IkiWiki/Plugin/brokenlinks.pm
index 50bbe0d54..22590366b 100644
--- a/IkiWiki/Plugin/brokenlinks.pm
+++ b/IkiWiki/Plugin/brokenlinks.pm
@@ -35,7 +35,8 @@ sub preprocess (@) { #{{{
}
return "There are no broken links!" unless @broken;
- return "<ul>\n".join("\n", map { "<li>$_</li>" } sort @broken)."</ul>\n";
+ my %seen;
+ return "<ul>\n".join("\n", map { "<li>$_</li>" } grep { ! $seen{$_}++ } sort @broken)."</ul>\n";
} # }}}
1