my %params=@_;
$params{pages}="*" unless defined $params{pages};
- # Needs to update whenever a page is added or removed, so
- # register a dependency.
- add_depends($params{page}, $params{pages});
-
# Get all the items to map.
my @mapitems = ();
- foreach my $page (keys %links) {
+ foreach my $page (keys %pagesources) {
if (pagespec_match($page, $params{pages}, location => $params{page})) {
push @mapitems, $page;
}
}
+ # Needs to update whenever a page is added or removed, so
+ # register a dependency.
+ add_depends($params{page}, $params{pages});
+ # Explicitly add all currently shown pages, to detect when pages
+ # are removed.
+ add_depends($params{page}, join(" or ", @mapitems));
+
# Create the map.
my $indent=0;
my $openli=0;
pagetemplate hook to work for that page.
* Above change fixes the favicon plugin to work on edit pages.
* Correct some issues with escaped preprocessor directives.
+ * Make the map plugin notice when pages in the map are deleted and update
+ it.
- -- Joey Hess <joeyh@debian.org> Fri, 20 Jul 2007 13:54:02 -0400
+ -- Joey Hess <joeyh@debian.org> Tue, 24 Jul 2007 20:58:19 -0400
ikiwiki (2.4) unstable; urgency=low
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-07-16 01:17-0400\n"
+"POT-Creation-Date: 2007-07-24 21:03-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Preferences saved."
msgstr ""
-#: ../IkiWiki/CGI.pm:349
+#: ../IkiWiki/CGI.pm:350
#, perl-format
msgid "%s is not an editable page"
msgstr ""
-#: ../IkiWiki/CGI.pm:428 ../IkiWiki/Plugin/brokenlinks.pm:24
+#: ../IkiWiki/CGI.pm:429 ../IkiWiki/Plugin/brokenlinks.pm:24
#: ../IkiWiki/Plugin/inline.pm:184 ../IkiWiki/Plugin/opendiscussion.pm:17
#: ../IkiWiki/Plugin/orphans.pm:28 ../IkiWiki/Render.pm:91
#: ../IkiWiki/Render.pm:171
msgid "discussion"
msgstr ""
-#: ../IkiWiki/CGI.pm:474
+#: ../IkiWiki/CGI.pm:475
#, perl-format
msgid "creating %s"
msgstr ""
-#: ../IkiWiki/CGI.pm:492 ../IkiWiki/CGI.pm:507 ../IkiWiki/CGI.pm:518
-#: ../IkiWiki/CGI.pm:544 ../IkiWiki/CGI.pm:588
+#: ../IkiWiki/CGI.pm:493 ../IkiWiki/CGI.pm:509 ../IkiWiki/CGI.pm:521
+#: ../IkiWiki/CGI.pm:548 ../IkiWiki/CGI.pm:593
#, perl-format
msgid "editing %s"
msgstr ""
-#: ../IkiWiki/CGI.pm:685
+#: ../IkiWiki/CGI.pm:691
msgid "You are banned."
msgstr ""
-#: ../IkiWiki/CGI.pm:717
+#: ../IkiWiki/CGI.pm:723
msgid "login failed, perhaps you need to turn on cookies?"
msgstr ""