]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
* Call filter hooks on inlined page content.
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index c98888452b43ec79e302109b38c402174750935d..5c2aeb6c7ccecde1ec6df7c0a32ec3986cdbe2de 100644 (file)
@@ -96,7 +96,7 @@ sub preprocess_inline (@) { #{{{
                # TODO: if $params{archive} eq "no", the only reason to do this
                # is to let the meta plugin get page title info; so stop
                # calling this next line then once the meta plugin can
-               # store that accross runs.
+               # store that accross runs (also tags plugin).
                $template->param(content => get_inline_content($page, $params{page}));
                $template->param(ctime => displaytime($pagectime{$page}));
 
@@ -130,7 +130,11 @@ sub get_inline_content ($$) { #{{{
        my $file=$pagesources{$page};
        my $type=pagetype($file);
        if (defined $type) {
-               return htmlize($type, preprocess($page, $destpage, linkify($page, $destpage, readfile(srcfile($file)))));
+               return htmlize($type,
+                      preprocess($page, $destpage,
+                      linkify($page, $destpage,
+                      filter($page,
+                      readfile(srcfile($file))))));
        }
        else {
                return "";
@@ -233,7 +237,7 @@ sub pingurl (@) { #{{{
                        }
                        my $r=$res->value;
                        if (! exists $r->{flerror} || $r->{flerror}) {
-                               debug("Ping rejected: ".$r->{message});
+                               debug("Ping rejected: ".(exists $r->{message} ? $r->{message} : "[unknown reason]"));
                        }
                }
        }