Only store authorsort in meta pagestate if it differs from author
authorSimon McVittie <smcv@debian.org>
Mon, 5 Apr 2010 23:59:16 +0000 (00:59 +0100)
committerSimon McVittie <smcv@debian.org>
Mon, 5 Apr 2010 23:59:16 +0000 (00:59 +0100)
IkiWiki/Plugin/meta.pm

index 7f19b46a3cf89f4f9d3317d9fbc5d06879803e70..34e902bec4d19d98730612e6ee78cc157ce7299d 100644 (file)
@@ -131,7 +131,7 @@ sub preprocess (@) {
                        $pagestate{$page}{meta}{authorsort}=$params{sortas};
                }
                else {
-                       $pagestate{$page}{meta}{authorsort}=$value;
+                       delete $pagestate{$page}{meta}{authorsort};
                }
                # fallthorough
        }