More typos...

This commit is contained in:
vyshane 2006-09-19 07:16:04 +00:00
parent 5ddc81b973
commit 0fd332a811
2 changed files with 2 additions and 2 deletions

View 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 {

View 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");
}