add ISPAGE variable to page.tmpl
Plugins will also be able to use this to tell if the template is being used to generate a wiki page, when misctemplate starts also using page.tmpl.master
parent
34afaf1015
commit
8aa5f2d23e
|
@ -138,6 +138,7 @@ sub genpage ($$) {
|
|||
title => $page eq 'index'
|
||||
? $config{wikiname}
|
||||
: pagetitle(basename($page)),
|
||||
ispage => 1,
|
||||
wikiname => $config{wikiname},
|
||||
content => $content,
|
||||
backlinks => $backlinks,
|
||||
|
@ -145,6 +146,7 @@ sub genpage ($$) {
|
|||
mtime => displaytime($pagemtime{$page}),
|
||||
ctime => displaytime($pagectime{$page}, undef, 1),
|
||||
baseurl => baseurl($page),
|
||||
have_footer => 1,
|
||||
html5 => $config{html5},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue