From: David Bremner Date: Sun, 14 Sep 2008 19:54:53 +0000 (-0300) Subject: add support for overriding copyright globally X-Git-Tag: 0.6~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0dc30b66cf56d544c7d67654250afd18a0b377d6;p=ikiwiki.git add support for overriding copyright globally --- diff --git a/IkiWiki/Plugin/mailbox.pm b/IkiWiki/Plugin/mailbox.pm index 207388425..991e4d4ce 100644 --- a/IkiWiki/Plugin/mailbox.pm +++ b/IkiWiki/Plugin/mailbox.pm @@ -255,6 +255,11 @@ sub pagetemplate (@) { #{{{ my $destpage=$params{destpage}; my $template=$params{template}; + + if (defined($config{mailbox_copyright})){ + $template->param(COPYRIGHT=>$config{mailbox_copyright}); + } + if (exists $metaheaders{$page} && $template->query(name => "meta")) { # avoid duplicate meta lines my %seen; diff --git a/test/test.setup b/test/test.setup index d5edd3f7a..a553af25b 100644 --- a/test/test.setup +++ b/test/test.setup @@ -207,5 +207,5 @@ use IkiWiki::Setup::Standard { mailbox_obfuscation_strategy=>"delete", # mailbox_obfuscation_strategy=>"rot13", # mailbox_obfuscation_strategy=>"none" - + mailbox_copyright=>"Comments copyright individual posters", }