Revision 573
Added by thorn almost 18 years ago
| view.php | ||
|---|---|---|
| 301 | 301 |
if($post['commenting'] == 'private' AND isset($admin) AND $admin->is_authenticated() == true OR $post['commenting'] == 'public') {
|
| 302 | 302 |
|
| 303 | 303 |
// Print comments header |
| 304 |
echo str_replace('[ADD_COMMENT_URL]', WB_URL.'/modules/news/comment.php?id='.POST_ID, $setting_comments_header);
|
|
| 304 |
echo str_replace('[ADD_COMMENT_URL]', WB_URL.'/modules/news/comment.php?id='.POST_ID.'&sid='.$section_id, $setting_comments_header);
|
|
| 305 | 305 |
|
| 306 | 306 |
// Query for comments |
| 307 | 307 |
$query_comments = $database->query("SELECT title,comment,commented_when,commented_by FROM ".TABLE_PREFIX."mod_news_comments WHERE post_id = '".POST_ID."' ORDER BY commented_when ASC");
|
| ... | ... | |
| 332 | 332 |
} |
| 333 | 333 |
|
| 334 | 334 |
// Print comments footer |
| 335 |
echo str_replace('[ADD_COMMENT_URL]', WB_URL.'/modules/news/comment.php?id='.POST_ID, $setting_comments_footer);
|
|
| 335 |
echo str_replace('[ADD_COMMENT_URL]', WB_URL.'/modules/news/comment.php?id='.POST_ID.'&sid='.$section_id, $setting_comments_footer);
|
|
| 336 | 336 |
|
| 337 | 337 |
} |
| 338 | 338 |
|
Also available in: Unified diff
fixed E_NOTICE-warning in news-module (SECTION_ID)