mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-14129, cannot use a full string in the param
This commit is contained in:
parent
0a5a575579
commit
1e7386c9ad
2 changed files with 9 additions and 1 deletions
|
@ -712,7 +712,7 @@ class qformat_default {
|
|||
function get_category_path($id, $delimiter='/', $includecontext = true) {
|
||||
$path = '';
|
||||
if (!$firstcategory = get_record('question_categories','id',$id)) {
|
||||
print_error( "Error getting category record from db - $id" );
|
||||
print_error('cannotfindcategory', 'error', '', $id);
|
||||
}
|
||||
$category = $firstcategory;
|
||||
$contextstring = $this->translator->context_to_string($category->contextid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue