]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
no more misc.tmpl
[ikiwiki.git] / IkiWiki.pm
index c428de77f7e055390e66fcdf53301f61ac2d9382..d20a3709c9a9a4c911e0a0dfce6025e7de0e8f97 100644 (file)
@@ -1742,21 +1742,29 @@ sub template ($;@) {
 
 sub misctemplate ($$;@) {
        my $title=shift;
-       my $pagebody=shift;
+       my $content=shift;
        
-       my $template=template("misc.tmpl");
+       my $template=template("misc.tmpl") || template("page.tmpl");
+
+       run_hooks(pagetemplate => sub {
+               shift->(page => "", destpage => "", template => $template);
+       });
+
        $template->param(
                title => $title,
-               indexlink => indexlink(),
                wikiname => $config{wikiname},
-               pagebody => $pagebody,
+               content => $content,
                baseurl => baseurl(),
                html5 => $config{html5},
+               have_actions => 0, # force off
+               searchform => 0,   # ditto
+               parentlinks => [{  # override
+                       url => $config{url},
+                       page => $config{wikiname},
+               }],
                @_,
        );
-       run_hooks(pagetemplate => sub {
-               shift->(page => "", destpage => "", template => $template);
-       });
+
        return $template->output;
 }