Changeset 2032 for trunk/bp-forums.php
- Timestamp:
- 10/05/2009 06:05:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r1995 r2032 168 168 169 169 $query = new BB_Query( 'topic', 'topic_id=' . $topic_id ); 170 170 171 return $query->results[0]; 171 172 } … … 203 204 if ( !$topic_id = bb_insert_topic( array( 'topic_title' => stripslashes( $topic_title ), 'topic_slug' => $topic_slug, 'topic_poster' => $topic_poster, 'topic_poster_name' => $topic_poster_name, 'topic_last_poster' => $topic_last_poster, 'topic_last_poster_name' => $topic_last_poster_name, 'topic_start_time' => $topic_start_time, 'topic_time' => $topic_time, 'topic_open' => $topic_open, 'forum_id' => (int)$forum_id, 'tags' => $topic_tags ) ) ) 204 205 return false; 205 206 206 207 /* Now insert the first post. */ 207 208 if ( !bp_forums_insert_post( array( 'topic_id' => $topic_id, 'post_text' => $topic_text, 'post_time' => $topic_time, 'poster_id' => $topic_poster ) ) )
Note: See TracChangeset
for help on using the changeset viewer.