ref: 0418d6cb0bbc2b9cf72167eeb3211dc9fa6ad8c4
parent: b28035b1b6cc9220c2449d1066fd25606571a69d
author: uriel <[email protected]>
date: Tue Sep 22 13:12:34 EDT 2009
Fix bug that caused the creation of directories in wiki to act erratically.
--- a/apps/dirdir/app.rc
+++ b/apps/dirdir/app.rc
@@ -6,7 +6,12 @@
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)