Details
-
Type:
Sub-task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Cannot Reproduce
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: General
-
Labels:None
-
Affected Branches:MOODLE_20_STABLE
Description
Trying to put an error message using qtype_multianswer.php with 2 parameters
$string['unknownquestiontypeofsubquestion'] = 'Unknown question type: $a->type of question part # $a->sub';
with the following code
$a = new stdClass;
$a->type = 'multichoice' ;
$a->sub = "1";
echo "<p>".get_string('unknownquestiontypeofsubquestion', 'qtype_multianswer',$a)."</p>";
print_error('unknownquestiontypeofsubquestion', 'qtype_multianswer',$a);
the echo get_string is Ok but the print_error has an error from weblib. see the screenshot to be attached