From e3e6ca2777990caf96e524f59e22925841c79e6e Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 14 Sep 2014 15:57:09 +0100 Subject: pagestats: rename disp to show, and document it --- IkiWiki/Plugin/pagestats.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/pagestats.pm b/IkiWiki/Plugin/pagestats.pm index d0a4ec7aa..ac0a463e3 100644 --- a/IkiWiki/Plugin/pagestats.pm +++ b/IkiWiki/Plugin/pagestats.pm @@ -34,10 +34,10 @@ sub getsetup () { sub linktext ($%) { # Return the text of the link to a tag, depending on option linktext. my ($page, %params) = @_; - if (exists $params{disp} && + if (exists $params{show} && exists $pagestate{$page} && - exists $pagestate{$page}{meta}{$params{disp}}) { - return $pagestate{$page}{meta}{$params{disp}}; + exists $pagestate{$page}{meta}{$params{show}}) { + return $pagestate{$page}{meta}{$params{show}}; } else { return undef; -- cgit v1.2.3