Changeset 1529

Show
Ignore:
Timestamp:
01/25/08 18:44:53 (10 months ago)
Author:
ewout
Message:

Wrong link in new friend request notification message. Resolves #253. Thanks, Greg (gowen).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/friend/lib/friends_actions.php

    r1317 r1529  
    3838                            $messages[] = sprintf(__gettext("%s has elected to moderate friendship requests. Your request has been added to their moderation queue."),$friend->name); 
    3939                            $u = get_record('users','ident',$friend_id); 
    40                             $message_body = sprintf(__gettext("%s has requested to add you as a friend!\n\nTo visit this user's profile, click on the following link:\n\n\t%s\n\nTo view all your friends requests and approve or deny this user, click here:\n\n\t%s\n\nRegards,\n\nThe %s team."),$_SESSION['name'], $CFG->wwwroot . user_info("username",$USER->ident) . "/", $CFG->wwwroot . "_friends/requests.php?owner=" . $friend_id,$CFG->sitename); 
     40                           $message_body = sprintf(__gettext("%s has requested to add you as a friend!\n\nTo visit this user's profile, click on the following link:\n\n\t%s\n\nTo view all your friends requests and approve or deny this user, click here:\n\n\t%s\n\nRegards,\n\nThe %s team."),$_SESSION['name'], $CFG->wwwroot . user_info("username",$USER->ident) . "/", $CFG->wwwroot . user_info("username",$friend_id) . "/friends/requests",$CFG->sitename); 
    4141                            $title = sprintf(__gettext("New %s friend request"), $CFG->sitename); 
    4242                            notify_user($u,$title,$message_body);