]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/link.pm
What license for themes for distribution in ikiwiki?
[git.ikiwiki.info.git] / IkiWiki / Plugin / link.pm
index b79273f96240dcfc0a66308bb3a942f6198945f0..3838aec09708450d8d3f9ba338b3cb3b09ee6892 100644 (file)
@@ -20,6 +20,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 1,
+                       section => "core",
                },
 }
 
@@ -86,7 +87,7 @@ sub scan (@) {
        my $content=$params{content};
 
        while ($content =~ /(?<!\\)$link_regexp/g) {
-               push @{$links{$page}}, linkpage($2);
+               add_link($page, linkpage($2));
        }
 }