shithub: werc

Download patch

ref: fc5b6f571e8bf3239a88e023b9f22a6470b19230
parent: 34155f0d5bd26886aae5977e36618f9eba85da9f
author: sl <uriel@engel.se.cat-v.org>
date: Sat Feb 28 08:26:40 EST 2009

Rename $blog_editors  to $conf_blog_editors and give it the default value of 'blog-editors'.

--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -5,6 +5,7 @@
         blagh_dirs=( . )
     conf_enable_app blagh
 }
+conf_blog_editors=blog-editors
 
 fn blagh_init {
     if(~ $#blagh_dirs 0 && ~ $req_path */[bB]log/*) {
@@ -17,7 +18,7 @@
     # && test -d / `{echo '-a -d '^$blagh_root^$blagh_dirs}
         blagh_url=$base_url^$blagh_uri
         blagh_root=$sitedir^$blagh_uri
-        if(check_user $blog_editors blog-editors) {
+        if(check_user $conf_blog_editors) {
             editor_mode=on
             if(~ $"post_arg_date '')
                 post_date=`{/bin/date +%F|sed 's,-,/,g'}