Changeset 452

Show
Ignore:
Timestamp:
07/04/07 19:18:11 (1 year ago)
Author:
so1o
Message:

Fixed error on approval if the due to inconsistent topic status

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-moderation-hold/trunk/moderation.php

    r412 r452  
    66Author: Aditya Naik 
    77Author URI: http://www.adityanaik.com/ 
    8 Version: 0.1 
     8Version: 0.2 
    99*/ 
    1010 
     
    316316    $bbdb->query("UPDATE $bbdb->posts SET post_status = '0' WHERE post_id = '$post_id'"); 
    317317    $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); 
    319320    $topic_id = (int) $topic->topic_id; 
    320321 
     
    360361  $hold_topics = bb_moderation_check_options('hold_topics', $options); 
    361362  $hold_posts = bb_moderation_check_options('hold_posts', $options); 
    362   //  echo "!" . $hold_topics . "!" . $hold_posts . "!"; 
     363   
    363364  if ( $hold_topics && isset($_POST['topic']) && $forum = (int) $_POST['forum_id'] ) { 
    364365    $bbdb->query("UPDATE $bbdb->topics SET topic_status = '-1' WHERE topic_id = '$topic_id'"); 
  • bb-moderation-hold/trunk/readme.txt

    r411 r452  
    33Tags: moderation, hold 
    44Requires at least: 1.0 alpha build 809 
    5 Tested up to: 1.0 alpha build 817 
     5Tested up to: 0.8.2.1 
    66Stable tag: trunk 
    77