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:
Petr Skoda 2010-04-11 16:45:55 +00:00
parent c1933f6de0
commit 3e0e25efd1
2 changed files with 2 additions and 2 deletions

View File

@ -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}';

View File

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