From: tjhunt Date: Wed, 20 Sep 2006 08:01:59 +0000 (+0000) Subject: More capability name typos. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1da5a3629460a9523ffd12355bf7ba741e9b142d;p=moodle.git More capability name typos. --- diff --git a/lib/questionlib.php b/lib/questionlib.php index f9e92541c1..71a1a7b248 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1481,7 +1481,7 @@ function question_category_select_menu($courseid, $published = false, $only_edit if ($cid==$selected) { $seltxt = "selected=\"selected\""; } - if ((!$only_editable) || has_capability('moodle/question:managecateory', get_context_instance(CONTEXT_COURSE, $category->course))) { + if ((!$only_editable) || has_capability('moodle/question:managecategory', get_context_instance(CONTEXT_COURSE, $category->course))) { echo " \n"; } } diff --git a/question/import.php b/question/import.php index ae28974543..4b615a2823 100644 --- a/question/import.php +++ b/question/import.php @@ -191,7 +191,7 @@ $cats = get_records('question_categories'); $categories = array(); foreach ($cats as $cat) { - if (has_capability('moodle/question:managecateory', get_context_instance(CONTEXT_COURSE, $cat->course))) { + if (has_capability('moodle/question:managecategory', get_context_instance(CONTEXT_COURSE, $cat->course))) { $categories[] = $cat; } } diff --git a/question/showbank.php b/question/showbank.php index b6ac1a8e8f..3c8497dfcc 100644 --- a/question/showbank.php +++ b/question/showbank.php @@ -55,7 +55,7 @@ if (!$tocategory = get_record('question_categories', 'id', $tocategoryid)) { error('Invalid category'); } - if (!has_capability('moodle/question:managecateory', get_context_instance(CONTEXT_COURSE, $tocategory->course))){ + if (!has_capability('moodle/question:managecategory', get_context_instance(CONTEXT_COURSE, $tocategory->course))){ error(get_string('categorynoedit', 'quiz', $tocategory->name), 'edit.php?courseid=$course->id'); } foreach ($_POST as $key => $value) { // Parse input for question ids