MDL-25353 Correcting lang string

This commit is contained in:
Pierre Pichet 2010-11-21 04:55:25 +00:00
parent d6f50ce6d1
commit a3130f2cf7
2 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,7 @@ $string['cannotdeletecate'] = 'You can\'t delete that category it is the default
$string['cannotenable'] = 'Question type {$a} cannot be created directly.';
$string['cannotfindcate'] = 'Could not find category record';
$string['cannotfindquestionfile'] = 'Could not find question data file in zip';
$string['cannotgetdsfordependent'] = 'Cannot get the specified dataset for a dataset dependent question! (question: {$a[0]}, datasetitem: {a[1]})';
$string['cannotgetdsfordependent'] = 'Cannot get the specified dataset for a dataset dependent question! (question: {$a->id}, datasetitem: {$a->item})';
$string['cannotgetdsforquestion'] = 'Cannot get the specified dataset for a calculated question! (question: {$a})';
$string['cannothidequestion'] = 'Was not able to hide question';
$string['cannotimportformat'] = 'Sorry, importing this format is not yet implemented!';

View File

@ -1767,7 +1767,10 @@ class question_calculated_qtype extends default_questiontype {
FROM {question_dataset_definitions} d, {question_dataset_items} i, {question_datasets} q
WHERE q.question = ? AND q.datasetdefinition = d.id AND d.id = i.definition AND i.itemnumber = ?
ORDER by i.id DESC ", array($question->id, $datasetitem))) {
print_error('cannotgetdsfordependent', 'question', '', array($question->id, $datasetitem));
$a = new stdClass;
$a->id = $question->id;
$a->item = $datasetitem ;
print_error('cannotgetdsfordependent', 'question', '', $a );
}
$dataset = Array();
foreach($dataitems as $id => $dataitem ){