projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408419c
)
move saveindex call into preview block
author
Joey Hess
<joey@kodama.kitenet.net>
Mon, 4 Feb 2008 00:51:00 +0000
(19:51 -0500)
committer
Joey Hess
<joey@kodama.kitenet.net>
Mon, 4 Feb 2008 00:51:00 +0000
(19:51 -0500)
This call is only present to handle the case where previewing a page
actually causes files to be rendered.
IkiWiki/CGI.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/CGI.pm
b/IkiWiki/CGI.pm
index 1ec23df68c4075788a4d301bd83c14277cba7876..4d4464c2872a48c32b331c88cfe4a35c9349a1fc 100644
(file)
--- a/
IkiWiki/CGI.pm
+++ b/
IkiWiki/CGI.pm
@@
-357,6
+357,8
@@
sub cgi_editpage ($$) { #{{{
linkify($page, "",
preprocess($page, $page,
filter($page, $page, $content), 0, 1))));
+ # previewing may have created files on disk
+ saveindex();
}
elsif ($form->submitted eq "Save Page") {
$form->tmpl_param("page_preview", "");
@@
-448,7
+450,6
@@
sub cgi_editpage ($$) { #{{{
}
showform($form, \@buttons, $session, $q);
- saveindex();
}
else {
# save page