commit f1b4471c4afc2227e7f6b037d7fd26756a99e44f
parent 54f6e364199705a1d434080cc65642527e1dc5d4
Author: uriel@soma <unknown>
Date: Wed, 25 Feb 2009 17:15:00 +0000
Fix incorrect recording of author on edits. And write a note on a very minnor bug that adds extra new lines at the end of edited files.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/apps/dirdir/edit.tpl b/apps/dirdir/edit.tpl
@@ -1,15 +1,15 @@
-% if (~ $"edit_save '') {
+% if(~ $"edit_save '') {
<div>
<h1>Editing %($edit_wiki_page%)</h1>
<br />
<form action="dirdir_edit" method="post">
<input type="hidden" name="edit_wiki_page" value="%($edit_wiki_page%)">
<textarea name="edit_text" id="edit_text" cols="80" rows="43">%{
-
+# FIXME Extra trailing new lines get added to the content somehow, should avoid it.
if(~ $#edit_text 0 && test -f $edit_file)
cat $edit_file | escape_html
if not
- echo $edit_text | escape_html
+ echo -n $edit_text | escape_html
%}</textarea>
<br />
@@ -37,10 +37,10 @@
dirdir_verdir = $dirdir_dir/`{date -n}^/
mkdir $dirdir_verdir
- echo $loggin_user > $dirdir_verdir/author
+ echo $logged_user > $dirdir_verdir/author
echo $edit_text > $dirdir_verdir/data
echo $edit_text > $edit_file
%}
-<h1>Saved <a href="%($edit_wiki_page%)">%($edit_wiki_page%)!</a></h1>
+<h1>Saved <a href="%($edit_wiki_page%)">%($edit_wiki_page%)</a>!</h1>
% }