aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-02 16:53:20 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-02 16:53:20 -0400
commit15341aed015e4b23d0a1171779d5baa0414c4fad (patch)
tree77e99932dc62c6f8e3d347d3ffe903b606ccc0b6 /IkiWiki
parent4708aeceb3ec518a00069ad7a112ab0a5596275c (diff)
downloadikiwiki-15341aed015e4b23d0a1171779d5baa0414c4fad.tar
ikiwiki-15341aed015e4b23d0a1171779d5baa0414c4fad.tar.gz
don't install demo external plugins by default
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/websetup.pm5
-rw-r--r--IkiWiki/Setup.pm4
2 files changed, 5 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm
index 0a0d4480f..2b9240a29 100644
--- a/IkiWiki/Plugin/websetup.pm
+++ b/IkiWiki/Plugin/websetup.pm
@@ -6,7 +6,10 @@ use strict;
use IkiWiki 2.00;
my @rcs_plugins=(qw{git svn bzr mercurial monotone tla norcs});
-my @default_force_plugins=(qw{amazon_s3});
+
+# amazon_s3 is not something that should be enabled via the web.
+# external is not a standalone plugin.
+my @default_force_plugins=(qw{amazon_s3 external});
sub import { #{{{
hook(type => "checkconfig", id => "websetup", call => \&checkconfig);
diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm
index 73e32447c..d14be879d 100644
--- a/IkiWiki/Setup.pm
+++ b/IkiWiki/Setup.pm
@@ -77,9 +77,7 @@ sub getsetup () { #{{{
my @ret;
# Load all plugins, so that all setup options are available.
- # (But skip a few problematic external demo plugins.)
- my @plugins=grep { ! /^(externaldemo|pythondemo|\Q$config{rcs}\E)$/ }
- sort(IkiWiki::listplugins());
+ my @plugins=grep { $_ ne $config{rcs} } sort(IkiWiki::listplugins());
unshift @plugins, $config{rcs} if $config{rcs}; # rcs plugin 1st
foreach my $plugin (@plugins) {
eval { IkiWiki::loadplugin($plugin) };