Changeset 2029 for trunk/include/picture_comment.inc.php
- Timestamp:
- Jun 6, 2007, 12:01:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/picture_comment.inc.php
r1900 r2029 44 44 if ( $page['show_comments'] and isset( $_POST['content'] ) ) 45 45 { 46 if ( $user['is_the_guest']and !$conf['comments_forall'] )46 if ( is_a_guest() and !$conf['comments_forall'] ) 47 47 { 48 48 die ('Session expired'); … … 62 62 { 63 63 case 'moderate': 64 array_push( $infos, $lang['comment_to_validate']);64 array_push( $infos, l10n('comment_to_validate') ); 65 65 case 'validate': 66 array_push( $infos, $lang['comment_added']);66 array_push( $infos, l10n('comment_added')); 67 67 break; 68 68 case 'reject': … … 138 138 array( 139 139 'COMMENT_AUTHOR' => empty($row['author']) 140 ? $lang['guest']140 ? l10n('guest') 141 141 : $row['author'], 142 142 … … 169 169 } 170 170 171 if (! $user['is_the_guest']172 or ( $user['is_the_guest']and $conf['comments_forall']))171 if (!is_a_guest() 172 or (is_a_guest() and $conf['comments_forall'])) 173 173 { 174 174 include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); … … 184 184 'CONTENT' => $content 185 185 )); 186 // display author field if the user is not logged in 187 if ($user['is_the_guest']) 186 187 // display author field if the user status is guest or generic 188 if (!is_classic_user()) 188 189 { 189 190 $template->assign_block_vars(
Note: See TracChangeset
for help on using the changeset viewer.