X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/89492a62a76e1bf5f5a1d2b1d9ac82b042b7ec49..f5a1550441a9d58652d93deacc333f143a7ecfbd:/IkiWiki/Plugin/pagestats.pm 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;