avoid forcing syslog setting
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 5 Aug 2008 23:36:53 +0000 (19:36 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 5 Aug 2008 23:36:53 +0000 (19:36 -0400)
This avoids forcing the setting to 0 if it was not set at all.

IkiWiki/Setup.pm
IkiWiki/Setup/Standard.pm

index d2d1e4b8e7fd44b88c0ed64f110e609f78785ea5..a34515f2148a2e8619ac70c3e1844086c20bfab3 100644 (file)
@@ -79,7 +79,7 @@ sub getsetup () { #{{{
         # disable logging to syslog while dumping, broken plugins may
        # whine when loaded
        my $syslog=$config{syslog};
-        $config{syslog}=0;
+        $config{syslog}=undef;
 
        # Load all plugins, so that all setup options are available.
        my @plugins=grep { $_ ne $config{rcs} } sort(IkiWiki::listplugins());
index 8a11b2ec6ba366dd49049add8b9ad320d78faaf9..92f887f0c4c1b565f1949b963e40da94e88c08be 100644 (file)
@@ -86,7 +86,7 @@ sub gendump ($) { #{{{
        my @ret;
        
        # disable logging to syslog while dumping
-       $config{syslog}=0;
+       $config{syslog}=undef;
 
        push @ret, dumpvalues(\%setup, IkiWiki::getsetup());
        foreach my $pair (IkiWiki::Setup::getsetup()) {