Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2012 09:02:53 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Remove unneeded globals and clean up some code in Messages component. See #3989.

File:
1 edited

Legend:

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

    r5417 r5696  
    11<?php
    2 /*******************************************************************************
     2
     3/**
     4 * BuddyPress Messages Screens
     5 *
    36 * Screen functions are the controllers of BuddyPress. They will execute when their
    47 * specific URL is caught. They will first save or manipulate data using business
    58 * functions, then pass on the user to a template file.
     9 *
     10 * @package BuddyPress
     11 * @subpackage MessagesScreens
    612 */
    713
     
    1016
    1117function messages_screen_inbox() {
    12     global $bp;
    13 
    1418    if ( bp_action_variables() ) {
    1519        bp_do_404();
     
    2226
    2327function messages_screen_sentbox() {
    24     global $bp;
    25 
    2628    if ( bp_action_variables() ) {
    2729        bp_do_404();
     
    129131
    130132function messages_screen_notification_settings() {
    131     global $bp;
    132 
    133133    if ( bp_action_variables() ) {
    134134        bp_do_404();
     
    140140
    141141    if ( !$new_notices = bp_get_user_meta( bp_displayed_user_id(), 'notification_messages_new_notice', true ) )
    142         $new_notices  = 'yes';
    143 ?>
     142        $new_notices  = 'yes'; ?>
    144143
    145144    <table class="notification-settings" id="messages-notification-settings">
Note: See TracChangeset for help on using the changeset viewer.