Various small cleanups: remove unused code, clarity and reliability fixes here and here, move code to more appropriate locations, improve some comments.
This commit is contained in:
parent
76bd359a11
commit
ae20a466a3
4 changed files with 46 additions and 72 deletions
|
|
@ -9,7 +9,7 @@ if(~ $REQUEST_METHOD POST && ! ~ $#target_blog_dir 0 && ! ~ $#post_title 0) {
|
|||
|
||||
if(~ $#blog_editors_group 0)
|
||||
echo Cant post to $target_blog_dir, no editors group set.
|
||||
if not if (! check_user $blog_editors_group)
|
||||
if not if(! check_user $blog_editors_group)
|
||||
echo Post to $target_blog_dir denied, user $logged_user not in group $blog_editors_group
|
||||
if not if(! make_blog_post $target_blog_dir $post_title $post_body)
|
||||
echo Posting to $target_blog_dir failed: $status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue