Skip to content

Commit

Permalink
course: MDL-23425 use correct config setting in check for displaying …
Browse files Browse the repository at this point in the history
…course request buttons

Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
  • Loading branch information
mylescarrick authored and danpoltawski committed Jan 9, 2011
1 parent 46f4c39 commit 94b8fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/category.php
Expand Up @@ -433,7 +433,7 @@
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>';
Expand Down

0 comments on commit 94b8fa5

Please sign in to comment.