aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-17 22:33:34 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-17 22:33:34 +0000
commit6003422f4577be43b387e608d531c59079b65db8 (patch)
treeb4ff9c9694d14a93c17b25c772a84275e5e87edc /IkiWiki
parentc1bf0eaf5d94371ed6228dcc82277ffa7d594904 (diff)
downloadikiwiki-6003422f4577be43b387e608d531c59079b65db8.tar
ikiwiki-6003422f4577be43b387e608d531c59079b65db8.tar.gz
simplify preview code
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 1c4e088dc..73727805a 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -353,7 +353,6 @@ sub cgi_editpage ($$) { #{{{
$file=$page.".".$type;
}
-
$form->field(name => "do", type => 'hidden');
$form->field(name => "from", type => 'hidden');
$form->field(name => "rcsinfo", type => 'hidden');
@@ -390,17 +389,11 @@ sub cgi_editpage ($$) { #{{{
return;
}
elsif ($form->submitted eq "Preview") {
- my $content=$form->field('editcontent');
- my $comments=$form->field('comments');
- $form->field(name => "editcontent",
- value => $content, force => 1);
- $form->field(name => "comments",
- value => $comments, force => 1);
$form->tmpl_param("page_preview",
htmlize($page, $type,
linkify($page, "",
preprocess($page, $page,
- filter($page, $content), 0, 1))));
+ filter($page, $form->field('editcontent')), 0, 1))));
}
else {
$form->tmpl_param("page_preview", "");