Fix bug that caused weird things to appear as page types.
The problem was introduced by the recent noextension patches. Object autovivification caused junk to get into %htmlize, and all keys of that showed up as page types.master
parent
e95cee757a
commit
c176dcde98
|
@ -639,8 +639,10 @@ sub pagetype ($) {
|
||||||
if ($file =~ /\.([^.]+)$/) {
|
if ($file =~ /\.([^.]+)$/) {
|
||||||
return $1 if exists $hooks{htmlize}{$1};
|
return $1 if exists $hooks{htmlize}{$1};
|
||||||
}
|
}
|
||||||
elsif ($hooks{htmlize}{basename($file)}{noextension}) {
|
my $base=basename($file);
|
||||||
return basename($file);
|
if (exists $hooks{htmlize}{$base} &&
|
||||||
|
$hooks{htmlize}{$base}{noextension}) {
|
||||||
|
return $base;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ ikiwiki (3.08) UNRELEASED; urgency=low
|
||||||
* git: Fix utf-8 encoding of author names.
|
* git: Fix utf-8 encoding of author names.
|
||||||
* git: Manually decode git output from utf-8, avoids
|
* git: Manually decode git output from utf-8, avoids
|
||||||
warning messages on invalidly encoded output.
|
warning messages on invalidly encoded output.
|
||||||
|
* Fix bug that caused weird things to appear as page types.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 09 Mar 2009 14:00:21 -0400
|
-- Joey Hess <joeyh@debian.org> Mon, 09 Mar 2009 14:00:21 -0400
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue