Plugin Directory

Changeset 708947


Ignore:
Timestamp:
05/06/2013 11:40:53 PM (13 years ago)
Author:
Yuttadhammo
Message:

fix option names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-xml-rpc-receiver/trunk/admin/bp-xmlrpc-admin.php

    r708946 r708947  
    153153                }
    154154                if( isset( $_POST['require_approval'] ) && !empty( $_POST['require_approval'] ) ) {
    155                     update_option( 'require_approval', true );
    156                 } else {
    157                     update_option( 'require_approval', false );
    158                 }
    159 
    160                 if( isset( $_POST['allowed_users'] ) )
    161                     update_option( 'allowed_users', $_POST['allowed_users'] );
     155                    update_option( 'bp_xmlrpc_require_approval', true );
     156                } else {
     157                    update_option( 'bp_xmlrpc_require_approval', false );
     158                }
     159
     160                if( isset( $_POST['bp_xmlrpc_allowed_users'] ) )
     161                    update_option( 'bp_xmlrpc_allowed_users', $_POST['allowed_users'] );
    162162
    163163                break;
     
    170170        // if adding access
    171171       
    172         $users = explode("\n",get_option('allowed_users'));
     172        $users = explode("\n",get_option('bp_xmlrpc_allowed_users'));
    173173        if(!in_array($_GET['add_access'],$users)) {
    174174            $users[] = $_GET['add_access'];
    175             update_option( 'allowed_users', implode( "\n", $users ));
     175            update_option( 'bp_xmlrpc_allowed_users', implode( "\n", $users ));
    176176            $added = true;
    177177        }
     
    247247                    <td>
    248248                        Add allowed usernames, one per line<br/>
    249                         <textarea id="allowed_users" name="allowed_users" cols="40" rows="20" ><?php echo esc_html( stripslashes( get_option( 'allowed_users' ) ) ); ?></textarea>
     249                        <textarea id="allowed_users" name="allowed_users" cols="40" rows="20" ><?php echo esc_html( stripslashes( get_option( 'bp_xmlrpc_allowed_users' ) ) ); ?></textarea>
    250250                    </td>
    251251                </tr>
Note: See TracChangeset for help on using the changeset viewer.