Merge branch 'wip-MDL-38251-m25' of git://github.com/samhemelryk/moodle

This commit is contained in:
Aparup Banerjee 2013-03-05 13:09:37 +08:00
commit c2b40106d3

View file

@ -373,7 +373,12 @@ if ($canmanage) {
// 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();
}