MDL-14129, cannot use a full string in the param

This commit is contained in:
dongsheng 2008-04-09 03:10:26 +00:00
parent 0a5a575579
commit 1e7386c9ad
2 changed files with 9 additions and 1 deletions

View file

@ -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);