| 198 | | if (isset($edit_comment) and ($row['id'] == $edit_comment)) |
| 199 | | { |
| 200 | | $tpl_comment['IN_EDIT'] = true; |
| 201 | | $key = get_comment_post_key(2, $page['image_id']); |
| 202 | | $tpl_comment['KEY'] = $key; |
| 203 | | $tpl_comment['CONTENT'] = $row['content']; |
| 204 | | } |
| | 198 | if (isset($edit_comment) and ($row['id'] == $edit_comment)) |
| | 199 | { |
| | 200 | $tpl_comment['IN_EDIT'] = true; |
| | 201 | $key = get_ephemeral_key(2, $page['image_id']); |
| | 202 | $tpl_comment['KEY'] = $key; |
| | 203 | $tpl_comment['CONTENT'] = $row['content']; |
| | 204 | } |
| 208 | | if ($row['validated'] != 'true') |
| 209 | | { |
| 210 | | $tpl_comment['U_VALIDATE'] = add_url_params( |
| 211 | | $url_self, |
| 212 | | array( |
| 213 | | 'action' => 'validate_comment', |
| 214 | | 'comment_to_validate' => $row['id'], |
| 215 | | 'pwg_token' => get_pwg_token(), |
| 216 | | ) |
| 217 | | ); |
| 218 | | } |
| | 208 | if ($row['validated'] != 'true') |
| | 209 | { |
| | 210 | $tpl_comment['U_VALIDATE'] = add_url_params( |
| | 211 | $url_self, |
| | 212 | array( |
| | 213 | 'action' => 'validate_comment', |
| | 214 | 'comment_to_validate' => $row['id'], |
| | 215 | 'pwg_token' => get_pwg_token(), |
| | 216 | ) |
| | 217 | ); |
| | 218 | } |