]> git.mjollnir.org Git - moodle.git/commitdiff
More typos...
authorvyshane <vyshane>
Tue, 19 Sep 2006 07:16:04 +0000 (07:16 +0000)
committervyshane <vyshane>
Tue, 19 Sep 2006 07:16:04 +0000 (07:16 +0000)
backup/restore_execute.html
backup/restore_form.html

index 5cfe1574fd6c5f766b92a28fb7631ec1d5f22a29..161e260d72542a18c02e51c89a62d80d685f28e5 100644 (file)
@@ -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 {
index 215023b05e82d32862092f9c7434ffbff387c264..364dd8181b12339373c813cbd5e60dfe083bbac1 100644 (file)
@@ -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");
     }