mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Changes related to language support ... get_string()
Minor little interface cleanups along the way
This commit is contained in:
parent
70442fe3c4
commit
97c270e9a8
18 changed files with 139 additions and 110 deletions
|
@ -153,7 +153,7 @@
|
|||
error("This module doesn't exist");
|
||||
}
|
||||
|
||||
$sectionname = $COURSE_SECTION[$course->format];
|
||||
$sectionname = get_string("name$course->format");
|
||||
|
||||
if (! $form = get_record($module->name, "id", $cm->instance)) {
|
||||
error("The required instance of this module doesn't exist");
|
||||
|
@ -189,7 +189,7 @@
|
|||
error("This course doesn't exist");
|
||||
}
|
||||
|
||||
$sectionname = $COURSE_SECTION[$course->format];
|
||||
$sectionname = get_string("name$course->format");
|
||||
|
||||
if (! $module = get_record("modules", "name", $add)) {
|
||||
error("This module type doesn't exist");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue