]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 0fe0bd2e108a444b6b85c2ded93840f10e4fd2fc..553fd350c15dd173305d52da5e9b9c2e85be332a 100644 (file)
@@ -337,7 +337,8 @@ sub preprocess_inline (@) {
                        my $file = $pagesources{$page};
                        my $type = pagetype($file);
                        if (! $raw || ($raw && ! defined $type)) {
-                               unless ($archive && $quick) {
+                               if (!($archive && $quick) &&
+                                   $template->query(name => 'content')) {
                                        # Get the content before populating the
                                        # template, since getting the content uses
                                        # the same template if inlines are nested.