Ticket #340: commentwall-msg.diff

File commentwall-msg.diff, 0.9 kB (added by justinr, 4 months ago)

commentwall messaging patch

  • mod/commentwall/lib.php

    old new  
    101101                         
    102102        if ($newcomment->ident = insert_record("commentwall", $newcomment)) { 
    103103            if ($newcomment->comment_owner != $newcomment->wallowner) { 
    104                 notify_user($wall_id, __gettext("Someone has posted to your comment wall"), __gettext("Check it out") . ": " . $CFG->wwwroot . user_info("username", $wall_id) . "/profile/"); 
     104                       message_user($wall_id, $poster_id, __gettext("Someone has posted to your comment wall"), __gettext("Check it out") . ": " . $CFG->wwwroot . user_info("username", $wall_id) . "/profile/"); 
    105105            } 
    106106                        $newcomment = plugin_hook("commentwall","publish",$newcomment);  
    107107            return $newcomment->ident;