edittemplate: Make silent mode not disable display when the template page does not exist, so it can be easily created.

master
Joey Hess 2010-06-12 22:20:22 -04:00
parent 31fa7714e7
commit c225cdad25
2 changed files with 4 additions and 1 deletions

View File

@ -59,8 +59,9 @@ sub preprocess (@) {
my $bestlink=bestlink($params{page}, $link); my $bestlink=bestlink($params{page}, $link);
$pagestate{$params{page}}{edittemplate}{$params{match}}=$bestlink; $pagestate{$params{page}}{edittemplate}{$params{match}}=$bestlink;
return "" if ($params{silent} && IkiWiki::yesno($params{silent}));
add_depends($params{page}, $link, deptype("presence")); add_depends($params{page}, $link, deptype("presence"));
return "" if ($params{silent} && IkiWiki::yesno($params{silent})) &&
length $bestlink;
return sprintf(gettext("edittemplate %s registered for %s"), return sprintf(gettext("edittemplate %s registered for %s"),
htmllink($params{page}, $params{destpage}, $link), htmllink($params{page}, $params{destpage}, $link),
$params{match}); $params{match});

2
debian/changelog vendored
View File

@ -6,6 +6,8 @@ ikiwiki (3.20100611) UNRELEASED; urgency=low
* img: Support hspace and vspace attributes. * img: Support hspace and vspace attributes.
* editpage: Rename "comments" field to avoid CSS conflict with the * editpage: Rename "comments" field to avoid CSS conflict with the
comments div. comments div.
* edittemplate: Make silent mode not disable display when the template
page does not exist, so it can be easily created.
-- Joey Hess <joeyh@debian.org> Fri, 11 Jun 2010 13:39:15 -0400 -- Joey Hess <joeyh@debian.org> Fri, 11 Jun 2010 13:39:15 -0400