mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-33624 lang - remove incosistent use of placeholder
This commit is contained in:
parent
2cbdaa77ea
commit
19a8646822
8 changed files with 8 additions and 9 deletions
|
@ -18,11 +18,11 @@
|
|||
$strcategories = get_string("categories");
|
||||
|
||||
if (! $course = $DB->get_record("course", array("id"=>$id))) {
|
||||
print_error("invalidcourseid", 'error', '', $id);
|
||||
print_error("invalidcourseid");
|
||||
}
|
||||
if ($site->id == $course->id) {
|
||||
// can not delete frontpage!
|
||||
print_error("invalidcourseid", 'error', '', $id);
|
||||
print_error("invalidcourseid");
|
||||
}
|
||||
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
|
|
|
@ -722,7 +722,7 @@ class core_course_external extends external_api {
|
|||
// Context validation.
|
||||
|
||||
if (! ($course = $DB->get_record('course', array('id'=>$params['courseid'])))) {
|
||||
throw new moodle_exception('invalidcourseid', 'error', '', $params['courseid']);
|
||||
throw new moodle_exception('invalidcourseid', 'error');
|
||||
}
|
||||
|
||||
// Category where duplicated course is going to be created.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue