add support for overriding copyright globally
authorDavid Bremner <bremner@unb.ca>
Sun, 14 Sep 2008 19:54:53 +0000 (16:54 -0300)
committerDavid Bremner <bremner@unb.ca>
Sun, 14 Sep 2008 19:54:53 +0000 (16:54 -0300)
IkiWiki/Plugin/mailbox.pm
test/test.setup

index 20738842541c7463ffde21cabbb2a5f04682d7d6..991e4d4ceb74cc8c1327123fd0fbb9607d8f6a53 100644 (file)
@@ -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;
index d5edd3f7ac8709db1506996d2084b023a699f3f5..a553af25b2807e24b9995333ccc3ca557d1cd676 100644 (file)
@@ -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",
 }