fix %links iteration
parent
299bb8bef3
commit
782e4d48df
|
@ -20,7 +20,7 @@ sub preprocess (@) { #{{{
|
||||||
IkiWiki::add_depends($params{page}, $params{pages});
|
IkiWiki::add_depends($params{page}, $params{pages});
|
||||||
|
|
||||||
my @broken;
|
my @broken;
|
||||||
foreach my $page (%IkiWiki::links) {
|
foreach my $page (keys %IkiWiki::links) {
|
||||||
if (IkiWiki::globlist_match($page, $params{pages})) {
|
if (IkiWiki::globlist_match($page, $params{pages})) {
|
||||||
foreach my $link (@{$IkiWiki::links{$page}}) {
|
foreach my $link (@{$IkiWiki::links{$page}}) {
|
||||||
next if $link =~ /.*\/discussion/i && $IkiWiki::config{discussion};
|
next if $link =~ /.*\/discussion/i && $IkiWiki::config{discussion};
|
||||||
|
|
|
@ -33,7 +33,7 @@ sub preprocess (@) { #{{{
|
||||||
|
|
||||||
my %counts;
|
my %counts;
|
||||||
my $max = 0;
|
my $max = 0;
|
||||||
foreach my $page (%IkiWiki::links) {
|
foreach my $page (keys %IkiWiki::links) {
|
||||||
if (IkiWiki::globlist_match($page, $params{pages})) {
|
if (IkiWiki::globlist_match($page, $params{pages})) {
|
||||||
my @bl = IkiWiki::backlinks($page);
|
my @bl = IkiWiki::backlinks($page);
|
||||||
$counts{$page} = scalar(@bl);
|
$counts{$page} = scalar(@bl);
|
||||||
|
|
Loading…
Reference in New Issue