]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
the real bug turned out to be in the meta plugin
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 2db39f777664d135b5cc86852feb04a77b058199..4dbf9f159605aeaccd0e9379061e6a06c2e3a1a1 100644 (file)
@@ -67,6 +67,7 @@ sub preprocess_inline (@) { #{{{
        my $atom=($config{atom} && exists $params{atom}) ? yesno($params{atom}) : $config{atom};
        my $quick=exists $params{quick} ? yesno($params{quick}) : 0;
        my $feeds=exists $params{feeds} ? yesno($params{feeds}) : !$quick;
+       $feeds=0 if $params{preview};
        if (! exists $params{show} && ! $archive) {
                $params{show}=10;
        }
@@ -139,7 +140,7 @@ sub preprocess_inline (@) { #{{{
        
        my @params=IkiWiki::template_params($params{template}.".tmpl", blind_cache => 1);
        if (! @params) {
-               return sprintf(gettext("nonexistant template %s @params"), $params{template});
+               return sprintf(gettext("nonexistant template %s"), $params{template});
        }
        my $template=HTML::Template->new(@params) unless $raw;
        
@@ -183,7 +184,7 @@ sub preprocess_inline (@) { #{{{
                                }
                                if (length $config{cgiurl} && defined $type) {
                                        $template->param(have_actions => 1);
-                                       $template->param(editurl => cgiurl(do => "edit", page => $page));
+                                       $template->param(editurl => cgiurl(do => "edit", page => pagetitle($page, 1)));
                                }
                        }