mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Implemented typo fixes described by ermanno bagnai in MDL-11689
This commit is contained in:
parent
d142077ef1
commit
d45181e38d
1 changed files with 3 additions and 3 deletions
|
@ -250,9 +250,9 @@ function forum_check_text_access($path, $itemtype, $this_id, $user, $group_id){
|
||||||
|
|
||||||
// get the glossary object and all related stuff
|
// get the glossary object and all related stuff
|
||||||
$post = get_record('forum_posts', 'id', $this_id);
|
$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);
|
$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);
|
$context_module = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||||
if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context_module)) return false;
|
if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context_module)) return false;
|
||||||
|
|
||||||
|
@ -266,4 +266,4 @@ function forum_check_text_access($path, $itemtype, $this_id, $user, $group_id){
|
||||||
return true;
|
return true;
|
||||||
} //forum_check_text_access
|
} //forum_check_text_access
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue