aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/comments.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-04 18:24:15 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-04 18:24:15 -0500
commit8380a9d0009fee740f980aee3d45a933a5b24219 (patch)
tree625a29926e459c0f81fd5f70cd6ac45144297c36 /IkiWiki/Plugin/comments.pm
parenta2e78ebcf27680eedf30e00f1ee9b86ed1d9e127 (diff)
downloadikiwiki-8380a9d0009fee740f980aee3d45a933a5b24219.tar
ikiwiki-8380a9d0009fee740f980aee3d45a933a5b24219.tar.gz
factor out a userpage function
Not yet exported, as only 4 quite core plugins use it.
Diffstat (limited to 'IkiWiki/Plugin/comments.pm')
-rw-r--r--IkiWiki/Plugin/comments.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 5586cca52..caed0d58c 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -171,9 +171,8 @@ sub preprocess {
else {
$commentauthorurl = IkiWiki::cgiurl(
do => 'goto',
- page => (length $config{userdir}
- ? "$config{userdir}/$commentuser"
- : "$commentuser"));
+ page => IkiWiki::userpage($commentuser)
+ );
$commentauthor = $commentuser;
}