Changeset 5649


Ignore:
Timestamp:
04/05/10 00:00:29 (9 years ago)
Author:
plg
Message:

bug 1534: if you're a guest, if configuration tells you can't add user
comments, you won't see the form on the picture page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/picture_comment.inc.php

    r5196 r5649  
    212212  } 
    213213 
    214   if (!is_a_guest() 
    215       or (is_a_guest() and $conf['comments_forall']) 
    216       or (empty($edit_comment))) 
     214  $show_add_comment_form = true; 
     215  if (isset($edit_comment)) 
     216  { 
     217    $show_add_comment_form = false; 
     218  } 
     219  if (is_a_guest() and !$conf['comments_forall']) 
     220  { 
     221    $show_add_comment_form = false; 
     222  } 
     223 
     224  if ($show_add_comment_form) 
    217225  { 
    218226    $key = get_comment_post_key($page['image_id']); 
Note: See TracChangeset for help on using the changeset viewer.