Skip to content

Commit

Permalink
Typo in capability name.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyshane committed Sep 25, 2006
1 parent e4ec4e4 commit 0ee186d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ function forum_make_mail_text($course, $forum, $discussion, $post, $userfrom, $u
error('Course Module ID was incorrect');
}
$modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
$viewfullnames = has_capability('mod/site:viewfullnames', $modcontext);
$viewfullnames = has_capability('moodle/site:viewfullnames', $modcontext);

$by = New stdClass;
$by->name = fullname($userfrom, $viewfullnames);
Expand Down Expand Up @@ -3378,7 +3378,7 @@ function forum_print_posts_threaded($parent, $courseid, $depth, $ratings, $reply
error('Course Module ID was incorrect');
}
$modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
$canviewfullnames = has_capability('mod/site:viewfullnames', $modcontext);
$canviewfullnames = has_capability('moodle/site:viewfullnames', $modcontext);

foreach ($posts as $post) {

Expand Down

0 comments on commit 0ee186d

Please sign in to comment.