Changeset 1175

Show
Ignore:
Timestamp:
06/28/07 11:16:13 (1 year ago)
Author:
icewing
Message:

Marcus Povey <marcus@dushka.co.uk>
* RESOLVED - bug 75: Generic comments - order comments by ascending

Files:

Legend:

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

    r1168 r1175  
    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"; 
     66                        $commenturl = $CFG->wwwroot."mod/generic_comments/comment_page.php?object_id={$comment->object_id}&object_type={$comment->object_type}&comment_sort=ASC"; 
    6767                        $username = "<a href=\"" . river_get_userurl($comment->owner) . "\">" . user_info("username", $comment->owner) . "</a>"; 
    6868                        if (!isset($comment->owner))  
  • devel/mod/generic_comments/lib.php

    r1174 r1175  
    6060                $txt = __gettext('Click to add or view comments on this file.'); 
    6161                $int = implode('',action('annotate',$object->ident,$object_type,NULL, 
    62                         array('comment_form_type'=>'inline', 'comment_sort'=>'DESC', 'comment_form_text'=>$txt))); 
     62                        array('comment_form_type'=>'inline', 'comment_sort'=>'ASC', 'comment_form_text'=>$txt))); 
    6363 
    6464                $return .= <<< END 
     
    7171END; 
    7272                $return .= implode('',action('annotate',$object->ident,$object_type,NULL, 
    73                         array('comment_form_type'=>'summary', 'comment_sort'=>'DESC', 'comment_form_text'=>$txt))); 
     73                        array('comment_form_type'=>'summary', 'comment_sort'=>'ASC', 'comment_form_text'=>$txt))); 
    7474 
    7575                $return .= <<< END