changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: 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/

changeset 334: 692643e96345
parent 333: 050598174cc8
child 335: 7c4268db88ec
author: uriel@engel.se.cat-v.org
date: Tue, 20 Jan 2009 03:38:48 +0100
files: apps/dirdir/app.rc lib/_apps/dirdir/edit.tpl
description: 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/
     1.1--- a/apps/dirdir/app.rc	Sat Jan 17 09:44:03 2009 +0100
     1.2+++ b/apps/dirdir/app.rc	Tue Jan 20 03:38:48 2009 +0100
     1.3@@ -1,5 +1,5 @@
     1.4 fn dirdir_init {
     1.5-    if(! ~ $#wiki 0 && test -f $local_path.md && check_user $wiki_editors_group) 
     1.6+    if(! ~ $#enable_wiki 0 && test -f $local_path.md && check_user $wiki_editors_group) 
     1.7         ll_add handlers_bar_left  dirdir_controls
     1.8 }
     1.9 
     2.1--- a/lib/_apps/dirdir/edit.tpl	Sat Jan 17 09:44:03 2009 +0100
     2.2+++ b/lib/_apps/dirdir/edit.tpl	Tue Jan 20 03:38:48 2009 +0100
     2.3@@ -1,4 +1,6 @@
     2.4 %{
     2.5+# XXX This should be moved to apps/dirdir/, and we should bail out if not called from a dir with $enable_wiki set.
     2.6+
     2.7 get_post_args edit_wiki_page edit_text edit_preview edit_save
     2.8 
     2.9 # XXX SECURITY HOLE! should sanitize form input and make sure we only edit files we are allowed