+ @page_locs = grep {
+ ! exists $pagecase{lc $_} &&
+ ! page_locked($_, $session, 1)
+ } @page_locs;
+
+ if (! @page_locs) {
+ # hmm, someone else made the page in the
+ # meantime?
+ redirect($q, "$config{url}/".htmlpage($page));
+ return;
+ }
+
+ my @page_types;
+ if (exists $hooks{htmlize}) {
+ @page_types=keys %{$hooks{htmlize}};
+ }
+