Skip to:
Content

bbPress.org

Changeset 2540


Ignore:
Timestamp:
09/07/2010 10:39:59 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Fixes #1326 props mr_pelle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/action.subscribe.php

    r2471 r2540  
    22
    33if ( !isset( $_GET['doit'] ) || 'bb-subscribe' != $_GET['doit'] ) // sanity check
    4         die;
     4    bb_die( __( 'What are you trying to do, exactly?' ) );
    55
    66if ( !bb_is_subscriptions_active() )
    7         bb_die( __( 'You can not subscribe to topics.' ) );
     7    bb_die( __( 'You can not subscribe to topics.' ) );
    88
    99if ( !isset( $_GET['topic_id'] ) )
    10         bb_die( __( 'Missing topic ID!' ) );
     10    bb_die( __( 'Missing topic ID!' ) );
    1111
    1212bb_auth( 'logged_in' );
     
    1616$topic = get_topic( $topic_id );
    1717if ( !$topic )
    18         bb_die( __( 'Topic not found! What are you subscribing to?' ) );
     18    bb_die( __( 'Topic not found! What are you subscribing to?' ) );
    1919
    2020bb_check_admin_referer( 'toggle-subscribe_' . $topic_id );
     
    2323
    2424if ( 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'] );
    2626
    2727wp_redirect( get_topic_link( $topic_id, 1 ) );
Note: See TracChangeset for help on using the changeset viewer.