Skip to content
Snippets Groups Projects
Commit 99b5a99e authored by Edmund Farrow's avatar Edmund Farrow
Browse files

default-test - Use same text for API

parent 013b5a57
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ class TestController {
$passes = 1;
} else {
$fails = 1;
$message = stack_string('default_test_fail');
$message = stack_string('defaulttestfail');
}
}
......
......@@ -160,7 +160,7 @@ require_login();
}
}
if (!json.istests && json.results[seed].passes == 1) {
resultHtml += '<p class="feedback passed">' + '<?php echo stack_string('default_test_pass')?>' + '</p>';
resultHtml += '<p class="feedback passed">' + '<?php echo stack_string('defaulttestpass')?>' + '</p>';
}
// Display seed level messages - will be exceptions.
if (json.results[seed].messages) {
......
......@@ -1530,8 +1530,6 @@ $string['castext_error_unevaluated'] = 'This text content was never evaluated.';
$string['default_test_fail'] = 'Default test using the model answers does not return a score of 1.';
$string['default_test_pass'] = 'Default test using the model answers returns a score of 1.';
// API strings.
$string['api_choose_file'] = 'Please select a question file';
$string['api_choose_folder'] = 'Choose a STACK folder';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment