course: MDL-23425 use correct config setting in check for displaying course request...
authorMyles Carrick <myles@mylescarrick.com>
Sun, 9 Jan 2011 18:28:41 +0000 (18:28 +0000)
committerDan Poltawski <dan.poltawski@luns.net.uk>
Sun, 9 Jan 2011 18:28:41 +0000 (18:28 +0000)
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
course/category.php

index 7ca8fc4..12558aa 100644 (file)
         echo $OUTPUT->single_button(new moodle_url('edit.php', $options), get_string('addnewcourse'), 'get');
     }
 
-    if (!empty($CFG->enablecourserequests) && $category->id == $CFG->enablecourserequests) {
+    if (!empty($CFG->enablecourserequests) && $category->id == $CFG->defaultrequestcategory) {
         print_course_request_buttons(get_context_instance(CONTEXT_SYSTEM));
     }
     echo '</div>';