Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/23/2008 07:19:11 PM (17 years ago)
Author:
apeatling
Message:
  • Fixed broken group wire posting
  • Fixed AJAX functionality across BuddyPress to work with the new member URLs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-ajax.php

    r391 r431  
    66    check_ajax_referer('messages_sendreply');
    77   
    8     if ( !$bp ) {
    9         bp_core_setup_globals();
    10         messages_setup_globals();
    11     }
    12 
    138    $result = messages_send_message($_REQUEST['send_to'], $_REQUEST['subject'], $_REQUEST['content'], $_REQUEST['thread_id'], true, false, true);
    149
     
    3429function messages_ajax_markunread() {
    3530    global $bp;
    36    
    37     if ( !$bp ) {
    38         bp_core_setup_globals();
    39         messages_setup_globals();
    40     }
    41    
     31
    4232    if ( !isset($_POST['thread_ids']) ) {
    4333        echo "-1|" . __('There was a problem marking messages as unread.', 'buddypress');
     
    5545    global $bp;
    5646   
    57     if ( !$bp ) {
    58         bp_core_setup_globals();
    59         messages_setup_globals();
    60     }
    61    
    6247    if ( !isset($_POST['thread_ids']) ) {
    6348        echo "-1|" . __('There was a problem marking messages as read.', 'buddypress');
     
    7459function messages_ajax_delete() {
    7560    global $bp;
    76    
    77     if ( !$bp ) {
    78         bp_core_setup_globals();
    79         messages_setup_globals();
    80     }
    81    
     61
    8262    if ( !isset($_POST['thread_ids']) ) {
    8363        echo "-1|" . __('There was a problem deleting messages.', 'buddypress');
Note: See TracChangeset for help on using the changeset viewer.