diff options
author | Simon McVittie <smcv@debian.org> | 2010-04-03 14:19:18 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-04-04 01:43:02 +0100 |
commit | 490f95616a8a49f2120655d07c282eefd067e640 (patch) | |
tree | 5cace5f72fd6c63dcfd809ac369b394b34416748 /IkiWiki | |
parent | 618bbaee3815daffe329fc1e2d77f04fcd8392b8 (diff) | |
download | ikiwiki-490f95616a8a49f2120655d07c282eefd067e640.tar ikiwiki-490f95616a8a49f2120655d07c282eefd067e640.tar.gz |
Rename sort parameter to meta title/author to sortas=bar
Joey pointed out that sort=x usually takes a sort order.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/meta.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index c9fdbc934..4992617d0 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -89,8 +89,8 @@ sub preprocess (@) { # Metadata collection that needs to happen during the scan pass. if ($key eq 'title') { $pagestate{$page}{meta}{title}=HTML::Entities::encode_numeric($value); - if (exists $params{sort}) { - $pagestate{$page}{meta}{titlesort}=$params{sort}; + if (exists $params{sortas}) { + $pagestate{$page}{meta}{titlesort}=$params{sortas}; } else { $pagestate{$page}{meta}{titlesort}=$value; @@ -122,8 +122,8 @@ sub preprocess (@) { } elsif ($key eq 'author') { $pagestate{$page}{meta}{author}=$value; - if (exists $params{sort}) { - $pagestate{$page}{meta}{authorsort}=$params{sort}; + if (exists $params{sortas}) { + $pagestate{$page}{meta}{authorsort}=$params{sortas}; } else { $pagestate{$page}{meta}{authorsort}=$value; |