mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-22060 fixed $a in string to match new rules
AMOS START REM fixed $a[] in [cannotinsertquestioncatecontext, core_question] AMOS END
This commit is contained in:
parent
c1933f6de0
commit
3e0e25efd1
@ -40,7 +40,7 @@ $string['cannotgetdsforquestion'] = 'Cannot get the specified dataset for a calc
|
||||
$string['cannothidequestion'] = 'Was not able to hide question';
|
||||
$string['cannotimportformat'] = 'Sorry, importing this format is not yet implemented!';
|
||||
$string['cannotinsertquestion'] = 'Could not insert new question!';
|
||||
$string['cannotinsertquestioncatecontext'] = 'Could not insert the new question category {$a}[0] illegal contextid {$a}[1]';
|
||||
$string['cannotinsertquestioncatecontext'] = 'Could not insert the new question category {$a->cat} illegal contextid {$a->ctx}';
|
||||
$string['cannotloadquestion'] = 'Could not load question';
|
||||
$string['cannotmovequestion'] = 'You can\'t use this script to move questions that have files associated with them from different areas.';
|
||||
$string['cannotopenforwriting'] = 'Cannot open for writing: {$a}';
|
||||
|
@ -397,7 +397,7 @@ class question_category_object {
|
||||
|
||||
if ($parentid) {
|
||||
if(!($DB->get_field('question_categories', 'contextid', array('id' => $parentid)) == $contextid)) {
|
||||
print_error('cannotinsertquestioncatecontext', 'question', '', array($newcategory, $contextid));
|
||||
print_error('cannotinsertquestioncatecontext', 'question', '', array('cat'=>$newcategory, 'ctx'=>$contextid));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user