]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/googlecalendar.pm
touchups
[ikiwiki.git] / IkiWiki / Plugin / googlecalendar.pm
index 3f5102210f0e30ae73ba3a322b7ab98345c69084..7efa1daa377538fdb2174eada674fca300701086 100644 (file)
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::googlecalendar;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        hook(type => "preprocess", id => "googlecalendar",
@@ -19,7 +19,7 @@ sub preprocess (@) { #{{{
        # Avoid XSS attacks..
        my ($url)=$params{html}=~m#iframe\s+src="http://www\.google\.com/calendar/embed\?([^"<>]+)"#;
        if (! defined $url || ! length $url) {
-               return "[[googlecalendar ".gettext("failed to find url in html")."]]";
+               error gettext("failed to find url in html")
        }
        my ($height)=$params{html}=~m#height="(\d+)"#;
        my ($width)=$params{html}=~m#width="(\d+)"#;