Changeset 452
- Timestamp:
- 07/04/07 19:18:11 (1 year ago)
- Files:
-
- bb-moderation-hold/trunk/moderation.php (modified) (3 diffs)
- bb-moderation-hold/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-moderation-hold/trunk/moderation.php
r412 r452 6 6 Author: Aditya Naik 7 7 Author URI: http://www.adityanaik.com/ 8 Version: 0. 18 Version: 0.2 9 9 */ 10 10 … … 316 316 $bbdb->query("UPDATE $bbdb->posts SET post_status = '0' WHERE post_id = '$post_id'"); 317 317 $bb_post = bb_get_post ( $post_id ); 318 $topic = get_topic( $bb_post->topic_id ); 318 add_filter( 'get_topic_where', 'no_where' ); 319 $topic = get_topic( $bb_post->topic_id , false); 319 320 $topic_id = (int) $topic->topic_id; 320 321 … … 360 361 $hold_topics = bb_moderation_check_options('hold_topics', $options); 361 362 $hold_posts = bb_moderation_check_options('hold_posts', $options); 362 // echo "!" . $hold_topics . "!" . $hold_posts . "!";363 363 364 if ( $hold_topics && isset($_POST['topic']) && $forum = (int) $_POST['forum_id'] ) { 364 365 $bbdb->query("UPDATE $bbdb->topics SET topic_status = '-1' WHERE topic_id = '$topic_id'"); bb-moderation-hold/trunk/readme.txt
r411 r452 3 3 Tags: moderation, hold 4 4 Requires at least: 1.0 alpha build 809 5 Tested up to: 1.0 alpha build 8175 Tested up to: 0.8.2.1 6 6 Stable tag: trunk 7 7
