Changeset 947


Ignore:
Timestamp:
Nov 19, 2005, 5:09:06 PM (18 years ago)
Author:
plg
Message:
  • bug 216 fixed: a message about validation required is given when a user submits a comment
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_5/picture.php

    r935 r947  
    399399     
    400400      // information message
    401       $message = $lang['comment_added'];
    402 
    403       if (!$conf['comments_validation'] or $user['status'] == 'admin')
     401      $message =
     402        $lang['comment_added']
     403        .(
     404          ($conf['comments_validation'] and $user['status'] != 'admin')
     405          ?
     406          '<br />'.$lang['comment_to_validate']
     407          :
     408          ''
     409          )
     410        ;
    404411     
    405       if ( $conf['comments_validation'] and $user['status'] != 'admin' )
    406       {
    407         $message.= '<br />'.$lang['comment_to_validate'];
    408       }
    409       $template->assign_block_vars('information',
    410                                    array('INFORMATION'=>$message));
     412      $template->assign_block_vars(
     413        'information',
     414        array('INFORMATION'=>$message)
     415        );
    411416    }
    412417    else
Note: See TracChangeset for help on using the changeset viewer.