swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit d65f6d75802411de92d61171887a45cd4b097297
parent 622f973e61a95f1b55ee27ae7006c1c9737e8015
Author: uriel@vm41.cat-v.org <unknown>
Date:   Tue, 22 Sep 2009 17:12:34 +0200

Fix bug that caused the creation of directories in wiki to act erratically.
Diffstat:
Mapps/dirdir/app.rc | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/apps/dirdir/app.rc b/apps/dirdir/app.rc @@ -6,7 +6,12 @@ fn conf_enable_wiki { fn dirdir_init { if(! ~ $#enable_wiki 0 && check_user $wiki_editors_groups) { - dirdir_file=$local_path.md + lp=$local_path + # werc.rc doesn't append /index when $local_path doesn't exit + # maybe it should, but for now we can fix it up here. + if(~ $lp */) + lp=$lp^'index' + dirdir_file=$lp.md dirdir_dir=$dirdir_file^'_werc/dirdir/' if(~ 1 $#post_arg_dirdir_edit $#post_arg_dirdir_preview)