Permalink
Browse files

MDL-38251 course: fixed add category button on top level

  • Loading branch information...
1 parent cce0d9a commit 79137823fa380275a64eec340a4745593a829a55 Sam Hemelryk committed Feb 28, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 course/manage.php
View
@@ -373,7 +373,12 @@
// Print button for creating new categories.
$url = new moodle_url('/course/editcategory.php', array('parent' => $id));
- echo $OUTPUT->single_button($url, get_string('addsubcategory'), 'get');
+ if ($id) {
+ $title = get_string('addsubcategory');
+ } else {
+ $title = get_string('addnewcategory');
+ }
+ echo $OUTPUT->single_button($url, $title, 'get');
echo $OUTPUT->container_end();
}

0 comments on commit 7913782

Please sign in to comment.