From: Simon McVittie Date: Fri, 6 Apr 2012 15:20:19 +0000 (+0100) Subject: trail: delete the right state X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3128409c06ea865190af2f8a2097d361f122171d;p=ikiwiki.git trail: delete the right state At some point I changed the storage of trail members' membership and forgot to update this use. (It turns out to be rather difficult to reach this code, possibly even impossible: it only applies if a member somehow ceases to match the trail's pagespec without either the trail or the member changing.) --- diff --git a/IkiWiki/Plugin/trail.pm b/IkiWiki/Plugin/trail.pm index 34a2ca5b6..7d2338f9b 100644 --- a/IkiWiki/Plugin/trail.pm +++ b/IkiWiki/Plugin/trail.pm @@ -335,7 +335,7 @@ sub prerender { if (exists $pagestate{$member}{trail}{item} && ! exists $member_to_trails{$member}) { $rebuild_trail_members{$member} = 1; - delete $pagestate{$member}{trailitem}; + delete $pagestate{$member}{trail}{item}; } }