-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.3
-
MOODLE_23_STABLE
-
MDL-33104-invalidcourseid
Whenever the error message 'invalidcourseid' is used, either via print_error or moodle_exception or get_string, never seems to pass the courseid variable. Even though the string is defined as:
'You are trying to use an invalid course ID: ({$a})'
|
One way to solve the problem would be to just remove the {$id} from the string, but we actually would like to have the string since we want to have a friendlier error message.
For example,
"The course you are trying access is not located on this server. Please try finding it on our archive server: https://archive.server/course/view.php?id={$a}"
I am submitting a patch to fix all instances of the 'invalidcourseid' to also pass in the courseid.
- has a non-specific relationship to
-
MDL-33624 String invalidcourseid - missing content for placeholder
-
- Closed
-