aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/brokenlinks.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-13 21:04:19 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-13 21:04:19 -0400
commit159c0c043cdd4009562087144a37fdda38eb6409 (patch)
tree8ee525ebf57336a25b9b9e9a0da10eb1efdcc049 /IkiWiki/Plugin/brokenlinks.pm
parent46c2d66fd37b12c2d02466118cb206000174f1b4 (diff)
downloadikiwiki-159c0c043cdd4009562087144a37fdda38eb6409.tar
ikiwiki-159c0c043cdd4009562087144a37fdda38eb6409.tar.gz
optimise gettext calls
Diffstat (limited to 'IkiWiki/Plugin/brokenlinks.pm')
-rw-r--r--IkiWiki/Plugin/brokenlinks.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/brokenlinks.pm b/IkiWiki/Plugin/brokenlinks.pm
index cf8f25281..f8d44892b 100644
--- a/IkiWiki/Plugin/brokenlinks.pm
+++ b/IkiWiki/Plugin/brokenlinks.pm
@@ -28,9 +28,9 @@ sub preprocess (@) {
add_depends($params{page}, $params{pages});
my %broken;
+ my $discussion=gettext("Discussion");
foreach my $page (pagespec_match_list([keys %links],
$params{pages}, location => $params{page})) {
- my $discussion=gettext("Discussion");
my %seen;
foreach my $link (@{$links{$page}}) {
next if $seen{$link};