comments: make preprocess a no-op
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sun, 23 Nov 2008 17:07:28 +0000 (17:07 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:04 +0000 (21:14 +0000)
IkiWiki/Plugin/comments.pm

index 25f1b62f0ee207124069caaaeee0ec6c2c106d9d..a7b16623203fdb47c0c92bc463f76db39544fbde 100644 (file)
@@ -41,9 +41,7 @@ sub getsetup () { #{{{
 sub preprocess (@) { #{{{
        my %params=@_;
 
-       unless (length $config{cgiurl}) {
-               error(gettext("[[!comments plugin requires CGI enabled]]"));
-       }
+       return "";
 
        my $page = $params{page};
        $pagestate{$page}{comments}{comments} = defined $params{closed}