aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-12-28 13:15:45 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-12-28 13:15:45 -0500
commita87f43d71eccc6c71bd0dadcc1fe06ec809cfdcf (patch)
tree3218eabd306831b3d1ee4daa040a49a7c3cffad7 /IkiWiki
parentb435ddb8de2093d99aff4e50479c67ce03e4728a (diff)
downloadikiwiki-a87f43d71eccc6c71bd0dadcc1fe06ec809cfdcf.tar
ikiwiki-a87f43d71eccc6c71bd0dadcc1fe06ec809cfdcf.tar.gz
Avoid uninitialized warnings with comments+no CGI.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/comments.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index ca497c75a..1a50d1865 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -206,10 +206,12 @@ sub preprocess {
$commentopenid = $commentuser;
}
else {
- $commentauthorurl = IkiWiki::cgiurl(
- do => 'goto',
- page => IkiWiki::userpage($commentuser)
- );
+ if (length $config{cgiurl}) {
+ $commentauthorurl = IkiWiki::cgiurl(
+ do => 'goto',
+ page => IkiWiki::userpage($commentuser)
+ );
+ }
$commentauthor = $commentuser;
}