Commit 16134e33 authored by David Monllaó's avatar David Monllaó
Browse files

Merge branch 'MDL-51215-28' of git://github.com/marinaglancy/moodle into MOODLE_28_STABLE

parents 5608e36d c34a1b7b
......@@ -1671,9 +1671,10 @@ class core_course_renderer extends plugin_renderer_base {
$site = get_site();
$output = '';
if (can_edit_in_category($category)) {
if (can_edit_in_category($coursecat->id)) {
// Add 'Manage' button if user has permissions to edit this category.
$managebutton = $this->single_button(new moodle_url('/course/management.php'), get_string('managecourses'), 'get');
$managebutton = $this->single_button(new moodle_url('/course/management.php',
array('categoryid' => $coursecat->id)), get_string('managecourses'), 'get');
$this->page->set_button($managebutton);
}
if (!$coursecat->id) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment