Skip to content
Permalink
Browse files

MDL-4384, fixed undefined function call, hide the add sub category fo…

…rm in non-editing mode
  • Loading branch information...
toyomoyo
toyomoyo committed Aug 20, 2007
1 parent b299029 commit 1dc08b85b1c203c64d470490d933cf5710e11d75
Showing with 1 addition and 3 deletions.
  1. +1 −1 course/category.php
  2. +0 −2 course/index.php
@@ -275,7 +275,7 @@
}
/// print option to add a subcategory
if (has_capability('moodle/category:create', $context)) {
if (has_capability('moodle/category:create', $context) && $creatorediting) {
$cat->id = $id;
$mform->set_data($cat);
$mform->display();
@@ -75,7 +75,6 @@
$strcategories, '', '', true, update_categories_button());
print_heading($strcategories);
print_box_start('categorybox');
print_category_create_form();
print_whole_category_list();
print_box_end();
print_course_search();
@@ -85,7 +84,6 @@
build_navigation(array(array('name'=>$strfulllistofcourses, 'link'=>'','type'=>'misc'))),
'', '', true, update_categories_button());
print_box_start('courseboxes');
print_category_create_form();
print_courses(0);
print_box_end();
}

0 comments on commit 1dc08b8

Please sign in to comment.
You can’t perform that action at this time.