Permalink
Browse files

[MDL-23137]

replacing some require_course_login by require_login
  • Loading branch information...
1 parent cfffb69 commit 0f70da0f492172fe98d6384f420a6aeef026ad7a Jordi Piguillem committed Aug 12, 2010
View
@@ -64,7 +64,7 @@
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
-require_course_login($course->id, true, $cm);
+require_login($course->id, true, $cm);
add_to_log($course->id, 'createpage', 'createpage', 'view.php?id=' . $cm->id, $wiki->id);
View
@@ -68,7 +68,7 @@
print_error('invalidsection', 'wiki');
}
-require_course_login($course, true, $cm);
+require_login($course, true, $cm);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
require_capability('mod/wiki:editpage', $context);
@@ -52,7 +52,7 @@
if (!$wiki = wiki_get_wiki($subwiki->wikiid)) {
print_error('incorrectwikiid', 'wiki');
}
-require_course_login($course->id, true, $cm);
+require_login($course->id, true, $cm);
$editcomments = new page_wiki_editcomment($wiki, $subwiki, $cm);
$comment = new stdClass();
@@ -57,7 +57,7 @@
if (!$wiki = wiki_get_wiki($subwiki->wikiid)) {
print_error('incorrectwikiid', 'wiki');
}
-require_course_login($course->id, true, $cm);
+require_login($course->id, true, $cm);
$comm = new page_wiki_handlecomments($wiki, $subwiki, $cm);
$comm->set_page($page);
@@ -62,7 +62,7 @@
print_error('invalidsection', 'wiki');
}
-require_course_login($course->id, true, $cm);
+require_login($course->id, true, $cm);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
require_capability('mod/wiki:overridelock', $context);
@@ -58,7 +58,7 @@
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
-require_course_login($course->id, true, $cm);
+require__login($course->id, true, $cm);
add_to_log($course->id, "restore", "restore", "view.php?id=$cm->id", "$wiki->id");

0 comments on commit 0f70da0

Please sign in to comment.