Changeset 2419
- Timestamp:
- 04/09/2010 05:17:33 PM (16 years ago)
- Location:
- trunk/bb-includes
- Files:
-
- 2 edited
-
functions.bb-posts.php (modified) (2 diffs)
-
functions.bb-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/functions.bb-posts.php
r2390 r2419 454 454 455 455 function bb_notify_subscribers( $post_id ) { 456 global $bbdb, $bb_current_user; 456 global $bbdb, $bb_current_user, $bb_ksd_pre_post_status; 457 458 if ( !empty( $bb_ksd_pre_post_status ) ) 459 return false; 457 460 458 461 if ( !$post = bb_get_post( $post_id ) ) … … 481 484 482 485 $message = __( "%2\$s wrote:\n\n %3\$s\n\nTopic Link: %4\$s\n\nYou're getting this mail because you subscribed to the topic, visit the topic and login to unsubscribe." ); 483 bb_mail( 484 $user->user_email, 485 '[' . bb_get_option('name') . '] ' . get_topic_title( $topic_id ), 486 sprintf( $message, get_topic_title( $topic_id ), get_user_name( $post->poster_id ), strip_tags( get_post_text( $post_id ) ), get_post_link( $post_id ) ), 487 'From: '.bb_get_option('name').' <'.bb_get_option('from_email').'>' 486 bb_mail( 487 $user->user_email, 488 '[' . bb_get_option('name') . '] ' . get_topic_title( $topic_id ), 489 sprintf( $message, get_topic_title( $topic_id ), get_user_name( $post->poster_id ), strip_tags( get_post_text( $post_id ) ), get_post_link( $post_id ) ) 488 490 ); 489 491 } -
trunk/bb-includes/functions.bb-template.php
r2411 r2419 3408 3408 global $topic, $bb_current_user, $bbdb, $bb; 3409 3409 3410 if ( ! $bb_current_user)3410 if ( !bb_is_user_logged_in() ) 3411 3411 return false; 3412 3412
Note: See TracChangeset
for help on using the changeset viewer.