Ignore:
Timestamp:
Jun 24, 2009, 9:00:40 PM (15 years ago)
Author:
nikrou
Message:

Fix two problem with Feature 1026 :
use of $confuser_fieldsusername and $confuser_fieldsid instead of username and id
escape comment content before editing it.

File:
1 edited

Legend:

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

    r3450 r3452  
    129129
    130130    $query = '
    131 SELECT com.id,author,author_id,username,date,image_id,content,validated
     131SELECT com.id,author,author_id,'.$conf['user_fields']['username'].' AS username,
     132  date,image_id,content,validated
    132133  FROM '.COMMENTS_TABLE.' AS com
    133134  LEFT JOIN '.USERS_TABLE.' AS u
    134     ON u.id = author_id
     135    ON u.'.$conf['user_fields']['id'].' = author_id
    135136  WHERE image_id = '.$page['image_id'].
    136137$validated_clause.'
Note: See TracChangeset for help on using the changeset viewer.