Fix color and format plugins to appear in the websetup interface.

master
Joey Hess 2010-02-06 16:25:39 -05:00
parent caa5db6c54
commit 5a2de27947
3 changed files with 19 additions and 0 deletions

View File

@ -10,6 +10,15 @@ use IkiWiki 3.00;
sub import {
hook(type => "preprocess", id => "color", call => \&preprocess);
hook(type => "format", id => "color", call => \&format);
hook(type => "getsetup", id => "color", call => \&getsetup);
}
sub getsetup () {
return
plugin => {
safe => 1,
rebuild => undef,
},
}
sub preserve_style ($$$) {

View File

@ -7,6 +7,15 @@ use IkiWiki 3.00;
sub import {
hook(type => "preprocess", id => "format", call => \&preprocess);
hook(type => "getsetup", id => "format", call => \&getsetup);
}
sub getsetup () {
return
plugin => {
safe => 1,
rebuild => undef,
},
}
sub preprocess (@) {

1
debian/changelog vendored
View File

@ -12,6 +12,7 @@ ikiwiki (3.20100123) UNRELEASED; urgency=low
to otherwise locked-down sites.
* auto-blog.setup: Lock all pages, so only admin can post to the blog
by default, and enable opendiscussion so others can comment.
* Fix color and format plugins to appear in the websetup interface.
-- Joey Hess <joeyh@debian.org> Tue, 26 Jan 2010 22:25:33 -0500