X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/3eaa5c91d7e7d012e050e54b7ee6b27db22efb19..40de619d4968ecd7dc0086ca5118746bc3db3860:/IkiWiki.pm?ds=sidebyside diff --git a/IkiWiki.pm b/IkiWiki.pm index ca483a111..08017635f 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -21,7 +21,7 @@ our @EXPORT = qw(hook debug error template htmlpage add_depends pagespec_match bestlink htmllink readfile writefile pagetype srcfile pagename displaytime will_render gettext urlto targetpage add_underlay pagetitle titlepage linkpage newpagefile - inject + inject warning %config %links %pagestate %wikistate %renderedfiles %pagesources %destsources); our $VERSION = 3.00; # plugin interface version, next is ikiwiki version @@ -579,6 +579,10 @@ sub error ($;$) { die $message."\n"; } +sub warning ($) { + return log_message(warning => @_); +} + sub debug ($) { return unless $config{verbose}; return log_message(debug => @_);