mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Merge branch 'wip-MDL-38251-m25' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
c2b40106d3
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue