Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[MDL-23137]

replacing some require_course_login by require_login
  • Loading branch information...
commit 0f70da0f492172fe98d6384f420a6aeef026ad7a 1 parent cfffb69
Jordi Piguillem authored
2  mod/wiki/create.php
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);
2  mod/wiki/edit.php
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);
2  mod/wiki/editcomments.php
View
@@ -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();
2  mod/wiki/instancecomments.php
View
@@ -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);
2  mod/wiki/overridelocks.php
View
@@ -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);
2  mod/wiki/restoreversion.php
View
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.