avoid syslog whining from broken plugins
parent
6f65cb1cbe
commit
5dbd053da3
|
@ -143,8 +143,6 @@ sub showplugintoggle ($$$$) { #{{{
|
|||
return 0;
|
||||
}
|
||||
|
||||
print STDERR ">>$plugin (@{$config{websetup_force_plugins}})\n";
|
||||
|
||||
$form->field(
|
||||
name => "enable.$plugin",
|
||||
label => "",
|
||||
|
|
|
@ -76,6 +76,10 @@ sub getsetup () { #{{{
|
|||
# [plugin, setup] pairs.
|
||||
my @ret;
|
||||
|
||||
# disable logging to syslog while dumping, broken plugins may whine when loaded
|
||||
my $syslog=$config{syslog};
|
||||
$config{syslog}=0;
|
||||
|
||||
# Load all plugins, so that all setup options are available.
|
||||
my @plugins=grep { $_ ne $config{rcs} } sort(IkiWiki::listplugins());
|
||||
unshift @plugins, $config{rcs} if $config{rcs}; # rcs plugin 1st
|
||||
|
@ -94,6 +98,8 @@ sub getsetup () { #{{{
|
|||
push @ret, [ $plugin, \@s ],
|
||||
}
|
||||
}
|
||||
|
||||
$config{syslog}=$syslog;
|
||||
|
||||
return @ret;
|
||||
} #}}}
|
||||
|
|
Loading…
Reference in New Issue