mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Avoid [[namesite]] to appear when ADDING site activities.
Merged from MOODLE_16_STABLE I sent this on May 9th! :-(
This commit is contained in:
parent
356183b5bd
commit
0ec7502bad
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@
|
|||
$sectionname = get_string("name$course->format");
|
||||
$fullmodulename = get_string("modulename", $module->name);
|
||||
|
||||
if ($form->section) {
|
||||
if ($form->section && $course->format != 'site') {
|
||||
$heading->what = $fullmodulename;
|
||||
$heading->to = "$sectionname $form->section";
|
||||
$pageheading = get_string("addinganewto", "moodle", $heading);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue