Skip to:
Content

BuddyPress.org

Ticket #4: interna_friends.patch

File interna_friends.patch, 1.4 KB (added by momo360modena, 17 years ago)
  • bp-friends-cssjs.php

     
    55 Inserts the Javascript needed for managing friends.
    66 **************************************************************************/   
    77
    8 function friends_add_js() {
    9         global $bp_friends_image_base;
    10         ?>
    11        
    12         <?php
    13 }
     8function friends_add_js() {}
    149
    1510
    1611/**************************************************************************
  • bp-friends-templatetags.php

     
    1111
    1212function bp_list_friends() {
    1313        $bp_friends = new BP_Friends();
    14         $friends = $bp_friends->get_friends();
     14        $bp_friends->get_friends();
    1515}
    1616
    1717function bp_validate_friend_search_terms() {
     
    3232
    3333function bp_output_find_friends_message($message) {
    3434        if ( isset($message) ) {
    35                 if($type == 'error') { $type = "error"; } else { $type = "updated"; } ?>
     35                if($type == 'error') {
     36                        $type = "error";
     37                } else {
     38                        $type = "updated";
     39                }
     40                ?>
    3641                        <div id="message" class="<?php echo $type; ?>">
    3742                                <p><?php echo $message; ?></p>
    38                         </div> <?php
     43                        </div>
     44                <?php
    3945                return true;
    40         } else {
    41                 return false;
    42         }
     46        }
     47        return false;
    4348}
    4449?>