Deal with empty diffurl in configuration.

master
Joey Hess 2013-01-29 08:12:56 +11:00
parent fce3cef33a
commit 82114f4451
3 changed files with 4 additions and 1 deletions

View File

@ -181,7 +181,7 @@ sub store ($$$) {
else {
$_->{link} = pagetitle($_->{page});
}
if (defined $_->{diffurl}) {
if (defined $_->{diffurl} && length($_->{diffurl})) {
$has_diffurl=1;
}

1
debian/changelog vendored
View File

@ -12,6 +12,7 @@ ikiwiki (3.20121213) UNRELEASED; urgency=low
a poll.
* trail: Avoid massive slowdown caused by pagetemplate hook when displaying
dynamic cgi pages, which cannot use trail anyway.
* Deal with empty diffurl in configuration.
-- Joey Hess <joeyh@debian.org> Sat, 22 Dec 2012 16:15:24 -0400

View File

@ -14,3 +14,5 @@ recentchanges.pm sets the template variable HAS_DIFFURL to 1 based solely on whe
(There should be one more line at the bottom with a single space on it...)
> [[applied|done]] --[[Joey]]