Revision 573
Added by thorn almost 17 years ago
trunk/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.7.0 ------------------------------------- |
14 |
|
|
14 |
|
|
15 |
20-Jan-2008 Thomas Hornik |
|
16 |
# fixed E_NOTICE-warning in news-module (about SECTION_ID in comment.php) |
|
15 | 17 |
19-Jan-2008 Christian Sommer |
16 | 18 |
! Reduced the success time out and set WYSIWSY background to white |
17 | 19 |
# Fixed some errors in form module (only in conjunction with E_ALL) |
trunk/wb/modules/news/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 |
|
trunk/wb/modules/news/comment.php | ||
---|---|---|
28 | 28 |
|
29 | 29 |
// Check if there is a post id |
30 | 30 |
if(!isset($_GET['id']) OR !is_numeric($_GET['id'])) { |
31 |
if(!isset($_POST['post_id']) OR !is_numeric($_POST['post_id'])) { |
|
32 |
header("Location: ".WB_URL.PAGES_DIRECTORY.""); |
|
33 |
exit(0); |
|
34 |
} else { |
|
35 |
$post_id = $_POST['post_id']; |
|
36 |
} |
|
37 |
} else { |
|
38 |
$post_id = $_GET['id']; |
|
31 |
header("Location: ".WB_URL.PAGES_DIRECTORY.""); |
|
32 |
exit(0); |
|
39 | 33 |
} |
34 |
$post_id = $_GET['id']; |
|
35 |
$section_id = $_GET['sid']; |
|
40 | 36 |
|
37 |
|
|
41 | 38 |
// Include database class |
42 | 39 |
require_once(WB_PATH.'/framework/class.database.php'); |
43 | 40 |
$database = new database(); |
44 | 41 |
|
45 |
$query_settings = $database->query("SELECT use_captcha FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '".SECTION_ID."'");
|
|
42 |
$query_settings = $database->query("SELECT use_captcha FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '$section_id'");
|
|
46 | 43 |
$use_captcha = $query_settings->fetchRow(); |
47 | 44 |
if($use_captcha['use_captcha']) { |
48 | 45 |
$_SESSION['captcha'] = ''; |
Also available in: Unified diff
fixed E_NOTICE-warning in news-module (SECTION_ID)