sub loadplugin ($) { #{{{
my $plugin=shift;
+ return if grep { $_ eq $plugin} @{$config{disable_plugins}};
+
my $mod="IkiWiki::Plugin::".possibly_foolish_untaint($plugin);
eval qq{use $mod};
if ($@) {
push @{$setup{plugin}}, @{$setup{add_plugins}};
delete $setup{add_plugins};
}
- if (exists $setup{disable_plugins}) {
- foreach my $plugin (@{$setup{disable_plugins}}) {
- $setup{plugin}=[grep { $_ ne $plugin } @{$setup{plugin}}];
- }
- delete $setup{disable_plugins};
- }
if (exists $setup{exclude}) {
push @{$config{wiki_file_prune_regexps}}, $setup{exclude};
}
is available for translation.
* Export gettext() from IkiWiki module.
* Don't put discussion links on discussion pages.
+ * Allow disabling of plugins included in goodstuff.
- -- Joey Hess <joeyh@debian.org> Thu, 28 Dec 2006 23:40:57 -0500
+ -- Joey Hess <joeyh@debian.org> Thu, 28 Dec 2006 23:49:11 -0500
ikiwiki (1.36) unstable; urgency=low
Some installs of PerlMagick require X11. I tried to first disable using "img" by using "--disable-plugin img"
in the Makefile. But still failed. My workaround was to remove "img" from the bundle in IkiWiki/Plugin/goodstuff.pm
before building. What is the recommended way to install ikiwiki without "img" support? --[[JeremyReed]]
+
+> I've fixed this in svn so plugins in goodstuff can be disabled. --[[Joey]]
push @{$config{plugin}}, $_[1];
},
"disable-plugin=s@" => sub {
- $config{plugin}=[grep { $_ ne $_[1] } @{$config{plugin}}];
+ push @{$config{disable_plugins}}, $_[1];
},
"pingurl=s" => sub {
push @{$config{pingurl}}, $_[1];