summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/recentchanges.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-04 01:50:51 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-04 01:50:51 -0400
commit27376abb3c73e6d1e5d5743b8ddc1dc4790a60e7 (patch)
treef764b660fde26243e7faed34859c31ab6ccf2083 /IkiWiki/Plugin/recentchanges.pm
parentded3ea2ccf074bed551d1feedf3d6b2f264589a0 (diff)
also decode html entities in the title
Diffstat (limited to 'IkiWiki/Plugin/recentchanges.pm')
-rw-r--r--IkiWiki/Plugin/recentchanges.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm
index 8135f9adb..c8d222edb 100644
--- a/IkiWiki/Plugin/recentchanges.pm
+++ b/IkiWiki/Plugin/recentchanges.pm
@@ -39,6 +39,14 @@ sub pagetemplate (@) { #{{{
my %params=@_;
my $template=$params{template};
my $page=$params{page};
+
+ # XXX this is here because I've been seeing a strange uninitialized
+ # value in this sub.
+ if (! defined $page) {
+ eval q{use Carp};
+ Carp::cluck("undefined page; please report this to Joey");
+ }
+
if ($config{rcs} && $page ne $config{recentchangespage} &&
$template->query(name => "recentchangesurl")) {
$template->param(recentchangesurl => urlto($config{recentchangespage}, $page));