Skip to content

Commit

Permalink
Implemented typo fixes described by ermanno bagnai in MDL-11689
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Oct 10, 2007
1 parent d142077 commit d45181e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions search/documents/forum_document.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ function forum_check_text_access($path, $itemtype, $this_id, $user, $group_id){

// get the glossary object and all related stuff
$post = get_record('forum_posts', 'id', $this_id);
$dicussion = get_record('forum_discussion', 'id', $post->discussion);
$discussion = get_record('forum_discussions', 'id', $post->discussion);
$course = get_record('course', 'id', $discussion->course);
$cm = get_coursemodule_from_instance('forum', $dicussion->forum, $course->id);
$cm = get_coursemodule_from_instance('forum', $discussion->forum, $course->id);
$context_module = get_context_instance(CONTEXT_MODULE, $cm->id);
if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context_module)) return false;

Expand All @@ -266,4 +266,4 @@ function forum_check_text_access($path, $itemtype, $this_id, $user, $group_id){
return true;
} //forum_check_text_access

?>
?>

0 comments on commit d45181e

Please sign in to comment.