From a87f43d71eccc6c71bd0dadcc1fe06ec809cfdcf Mon Sep 17 00:00:00 2001 From: Amitai Schlair Date: Sun, 28 Dec 2014 13:15:45 -0500 Subject: [PATCH] Avoid uninitialized warnings with comments+no CGI. --- IkiWiki/Plugin/comments.pm | 10 ++++++---- 1 file 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; } -- 2.44.0