Show
Ignore:
Timestamp:
05/13/08 09:15:34 (7 months ago)
Author:
misja
Message:

Misja Hoebe <misja@curverider.co.uk> Applied attachment:ticket:353:friend-comm-messages.diff, closed #353

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/community/lib/community_member_add.php

    r1583 r1590  
    3030                    $message_body= sprintf(__gettext("%s has joined %s!\n\nTo visit this user's profile, click on the following link:\n\n\t%s\n\nTo view all community members, click here:\n\n\t%s\n\nRegards,\n\nThe %s team."), $_SESSION['name'], $friend->name, $CFG->wwwroot . user_info("username", $USER->ident) . "/", $CFG->wwwroot . $friend->username . "/community/members", $CFG->sitename); 
    3131                    $title= sprintf(__gettext("New %s member"), $friend->name); 
    32                     notify_user($owner->ident, $title, $message_body); 
     32                    message_user($owner->ident, $friend_id, $title, $message_body); 
    3333                    plugin_hook("community:member","publish",$f); 
    3434 
     
    4040                                "%s\n\nTo view all membership requests and approve or deny this user, click here:\n\n\t%s\n\nRegards,\n\nThe %s team."), $_SESSION['name'], $friend->name, $CFG->wwwroot . user_info("username", $USER->ident) . "/", $CFG->wwwroot . $friend->username . "/community/members", $CFG->sitename); 
    4141                            $title= sprintf(__gettext("New %s member request"), $friend->name); 
    42                             notify_user($owner->ident, $title, $message_body); 
     42                            message_user($owner->ident, $friend_id, $title, $message_body); 
    4343                        } 
    4444                    } else