Skip to content

Commit

Permalink
MDL-25353 Correcting lang string
Browse files Browse the repository at this point in the history
  • Loading branch information
ppichet committed Nov 21, 2010
1 parent d6f50ce commit a3130f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lang/en/question.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$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!';
Expand Down
5 changes: 4 additions & 1 deletion question/type/calculated/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,10 @@ function pick_question_dataset($question, $datasetitem) {
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 ){
Expand Down

0 comments on commit a3130f2

Please sign in to comment.