mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
More typos...
This commit is contained in:
parent
5ddc81b973
commit
0fd332a811
@ -22,7 +22,7 @@
|
||||
|
||||
//Check admin
|
||||
if (!empty($id)) {
|
||||
if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COUESE, $id))) {
|
||||
if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COURSE, $id))) {
|
||||
if (empty($to)) {
|
||||
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
|
||||
} else {
|
||||
|
@ -169,7 +169,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
||||
echo "<td align=\"right\"><b>";
|
||||
echo get_string("restoreto").":</b>";
|
||||
echo "</td><td colspan=\"3\">";
|
||||
if (!has_capability('moodle/course:create', get_context_instance(CONTEXT_COUESE, $id))) {
|
||||
if (!has_capability('moodle/course:create', get_context_instance(CONTEXT_COURSE, $id))) {
|
||||
$restore_restoreto_options[0] = get_string("currentcoursedeleting");
|
||||
$restore_restoreto_options[1] = get_string("currentcourseadding");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user