From: Simon McVittie Date: Mon, 5 Apr 2010 23:59:16 +0000 (+0100) Subject: Only store authorsort in meta pagestate if it differs from author X-Git-Tag: 3.20100427~203^2 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/a2dc8c9373b36f7cc8da239b823b5839788a743d Only store authorsort in meta pagestate if it differs from author --- diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 7f19b46a3..34e902bec 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -131,7 +131,7 @@ sub preprocess (@) { $pagestate{$page}{meta}{authorsort}=$params{sortas}; } else { - $pagestate{$page}{meta}{authorsort}=$value; + delete $pagestate{$page}{meta}{authorsort}; } # fallthorough }