Changeset 1168

Show
Ignore:
Timestamp:
06/26/07 10:17:13 (1 year ago)
Author:
icewing
Message:

Marcus Povey <marcus@dushka.co.uk>
* BUGFIX 47: "Commented on" now a link to the comment.
* RIVER: Changed storage type to store longer text.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/generic_comments/comments_actions.php

    r1158 r1168  
    6464                if (function_exists('river_save_event')) 
    6565                { 
     66                        $commenturl = $CFG->wwwroot."mod/generic_comments/comment_page.php?object_id={$comment->object_id}&object_type={$comment->object_type}&comment_sort=DESC"; 
    6667                        $username = "<a href=\"" . river_get_userurl($comment->owner) . "\">" . user_info("username", $comment->owner) . "</a>"; 
    6768                        if (!isset($comment->owner))  
     
    7172                        } 
    7273 
    73                         river_save_event($comment->owner, $comment->object_id, $comment->owner, $comment->object_type, $username . " " . __gettext("commented on") . " '" . river_get_friendly_id($comment->object_type, $comment->object_id) . "'"); 
     74                        river_save_event($comment->owner, $comment->object_id, $comment->owner, $comment->object_type, $username . " <a href=\"$commenturl\">" . __gettext("commented on") . "</a> '" . river_get_friendly_id($comment->object_type, $comment->object_id) . "'"); 
    7475                         
    7576                } 
  • devel/mod/generic_comments/lib.php

    r1146 r1168  
    2424    // Add annotation support 
    2525        display_set_display_annotation_function("file::file", "generic_comments_displayobjectannotations"); 
     26        display_set_display_annotation_function("mediastream::media", "generic_comments_displayobjectannotations"); 
    2627 
    2728        // Register file river hook (if there)