Changeset 3600 for trunk/comments.php
- Timestamp:
- Jul 16, 2009, 7:20:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r3520 r3600 88 88 $page['items_number'] = $_GET['items_number']; 89 89 } 90 if ( !is_numeric($page['items_number']) and $page['items_number']!='all' ) 90 if ( !is_numeric($page['items_number']) and $page['items_number']!='all' ) 91 91 { 92 92 $page['items_number'] = 10; … … 272 272 INNER JOIN '.COMMENTS_TABLE.' AS com 273 273 ON ic.image_id = com.image_id 274 LEFT JOIN '.USERS_TABLE.' As u275 ON u.'.$conf['user_fields']['id'].' = com.author_id276 274 WHERE '.implode(' 277 275 AND ', $page['where_clauses']).' … … 305 303 , com.author 306 304 , com.author_id 307 , '.$conf['user_fields']['username'].' AS username308 305 , com.date 309 306 , com.content … … 312 309 INNER JOIN '.COMMENTS_TABLE.' AS com 313 310 ON ic.image_id = com.image_id 314 LEFT JOIN '.USERS_TABLE.' AS u315 ON u.'.$conf['user_fields']['id'].' = com.author_id316 311 WHERE '.implode(' 317 312 AND ', $page['where_clauses']).' … … 379 374 ); 380 375 381 if (!empty($comment['author']))382 {383 $author = $comment['author'];384 if ($author == 'guest')385 {386 $author = l10n('guest');387 }388 }389 else390 {391 $author = $comment['username'];392 }393 394 376 $tpl_comment = 395 377 array( … … 397 379 'TN_SRC' => $thumbnail_src, 398 380 'ALT' => $name, 399 'AUTHOR' => trigger_event('render_comment_author', $ author),381 'AUTHOR' => trigger_event('render_comment_author', $comment['author']), 400 382 'DATE'=>format_date($comment['date'], true), 401 383 'CONTENT'=>trigger_event('render_comment_content',$comment['content']),
Note: See TracChangeset
for help on using the changeset viewer.