From 9f1f4ca37fad66fec376ddbc5227022323d58f52 Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 20 Jan 2009 03:38:48 +0100 Subject: [PATCH] Rename $wiki to $enable_wiki to be consistent with $enable_comments, also add a note that dirdir templates should move from lib/_apps/dirdir/ to apps/diridri/ --- apps/dirdir/app.rc | 2 +- lib/_apps/dirdir/edit.tpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dirdir/app.rc b/apps/dirdir/app.rc index a2f585b..17a3829 100644 --- a/apps/dirdir/app.rc +++ b/apps/dirdir/app.rc @@ -1,5 +1,5 @@ fn dirdir_init { - if(! ~ $#wiki 0 && test -f $local_path.md && check_user $wiki_editors_group) + if(! ~ $#enable_wiki 0 && test -f $local_path.md && check_user $wiki_editors_group) ll_add handlers_bar_left dirdir_controls } diff --git a/lib/_apps/dirdir/edit.tpl b/lib/_apps/dirdir/edit.tpl index 49de4f4..7a3269e 100644 --- a/lib/_apps/dirdir/edit.tpl +++ b/lib/_apps/dirdir/edit.tpl @@ -1,4 +1,6 @@ %{ +# XXX This should be moved to apps/dirdir/, and we should bail out if not called from a dir with $enable_wiki set. + get_post_args edit_wiki_page edit_text edit_preview edit_save # XXX SECURITY HOLE! should sanitize form input and make sure we only edit files we are allowed