diff options
author | http://smcv.pseudorandom.co.uk/ <http://smcv.pseudorandom.co.uk/@web> | 2010-04-04 00:27:20 +0000 |
---|---|---|
committer | Joey Hess <joey@finch.kitenet.net> | 2010-04-04 00:27:20 +0000 |
commit | 20040772cecbddf07ab6369a22ab2fe1ad794b48 (patch) | |
tree | a1b726c9d42f37d3d155a8c43eb6491083a3c0fa | |
parent | 129bea3177b59be8ed4cc303720c8747f59a11ba (diff) | |
download | ikiwiki-20040772cecbddf07ab6369a22ab2fe1ad794b48.tar ikiwiki-20040772cecbddf07ab6369a22ab2fe1ad794b48.tar.gz |
update fieldsort plugin to be compatible with the latest version of my branch
-rw-r--r-- | doc/plugins/contrib/field/discussion.mdwn | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/plugins/contrib/field/discussion.mdwn b/doc/plugins/contrib/field/discussion.mdwn index 7e94a4029..ad17f87e6 100644 --- a/doc/plugins/contrib/field/discussion.mdwn +++ b/doc/plugins/contrib/field/discussion.mdwn @@ -68,15 +68,13 @@ I think it should just be part of `field` rather than a separate plugin. }, } - package IkiWiki::PageSpec; + package IkiWiki::SortSpec; - sub check_cmp_field { + sub cmp_field { if (!length $_[0]) { error("sort=field requires a parameter"); } - } - sub cmp_field { my $left = IkiWiki::Plugin::field::field_get_value($_[2], $_[0]); my $right = IkiWiki::Plugin::field::field_get_value($_[2], $_[1]); |