aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-09-14 15:57:09 +0100
committerSimon McVittie <smcv@debian.org>2014-09-14 15:57:09 +0100
commite3e6ca2777990caf96e524f59e22925841c79e6e (patch)
tree597410a0d1abaa2321f61dbc7a7874fbf11c5130 /IkiWiki/Plugin
parent89492a62a76e1bf5f5a1d2b1d9ac82b042b7ec49 (diff)
downloadikiwiki-e3e6ca2777990caf96e524f59e22925841c79e6e.tar
ikiwiki-e3e6ca2777990caf96e524f59e22925841c79e6e.tar.gz
pagestats: rename disp to show, and document it
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/pagestats.pm6
1 files changed, 3 insertions, 3 deletions
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;