]> git.mjollnir.org Git - moodle.git/commitdiff
More capability name typos.
authortjhunt <tjhunt>
Wed, 20 Sep 2006 08:01:59 +0000 (08:01 +0000)
committertjhunt <tjhunt>
Wed, 20 Sep 2006 08:01:59 +0000 (08:01 +0000)
lib/questionlib.php
question/import.php
question/showbank.php

index f9e92541c19e8f60d8d8de6897e5c4109f63f3c2..71a1a7b2486afd6157180bd4bd8ca473619e9ca1 100644 (file)
@@ -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 "    <option value=\"$cid\" $seltxt>$cname</option>\n";
         }
     }
index ae28974543fe39653e3c15b64e5477574ba1416e..4b615a2823787241411972c0e033cd4f5d6a51d9 100644 (file)
         $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;
             }      
         }
index b6ac1a8e8f5ce7f287772da3ed0dd0e0de6bfdf3..3c8497dfcc5f579be4fc69e4553367190fbbb4e4 100644 (file)
@@ -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