Changeset 2540
- Timestamp:
- 09/07/2010 10:39:59 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bb-includes/action.subscribe.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/action.subscribe.php
r2471 r2540 2 2 3 3 if ( !isset( $_GET['doit'] ) || 'bb-subscribe' != $_GET['doit'] ) // sanity check 4 die;4 bb_die( __( 'What are you trying to do, exactly?' ) ); 5 5 6 6 if ( !bb_is_subscriptions_active() ) 7 bb_die( __( 'You can not subscribe to topics.' ) );7 bb_die( __( 'You can not subscribe to topics.' ) ); 8 8 9 9 if ( !isset( $_GET['topic_id'] ) ) 10 bb_die( __( 'Missing topic ID!' ) );10 bb_die( __( 'Missing topic ID!' ) ); 11 11 12 12 bb_auth( 'logged_in' ); … … 16 16 $topic = get_topic( $topic_id ); 17 17 if ( !$topic ) 18 bb_die( __( 'Topic not found! What are you subscribing to?' ) );18 bb_die( __( 'Topic not found! What are you subscribing to?' ) ); 19 19 20 20 bb_check_admin_referer( 'toggle-subscribe_' . $topic_id ); … … 23 23 24 24 if ( in_array( $_GET['and'], array( 'add', 'remove' ) ) ) 25 bb_subscription_management( $topic->topic_id, $_GET['and'] );25 bb_subscription_management( $topic->topic_id, $_GET['and'] ); 26 26 27 27 wp_redirect( get_topic_link( $topic_id, 1 ) );
Note: See TracChangeset
for help on using the changeset viewer.