From 0dc30b66cf56d544c7d67654250afd18a0b377d6 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 14 Sep 2008 16:54:53 -0300 Subject: [PATCH] add support for overriding copyright globally --- IkiWiki/Plugin/mailbox.pm | 5 +++++ test/test.setup | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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", } -- 2.26.2