Skip to content

Commit 35d8904

Browse files
Don't use accepted
1 parent e28750f commit 35d8904

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Diff for: webapp/src/Twig/TwigExtension.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ public function printResult(
517517
?string $result,
518518
bool $valid = true,
519519
bool $jury = false,
520-
bool $onlyAcceptedAndRejected = false,
520+
bool $onlyRejectedForIncorrect = false,
521521
): string {
522522
$result = strtolower($result ?? '');
523523
switch ($result) {
@@ -540,13 +540,10 @@ public function printResult(
540540
break;
541541
case 'correct':
542542
$style = 'sol_correct';
543-
if ($onlyAcceptedAndRejected) {
544-
$result = 'accepted';
545-
}
546543
break;
547544
default:
548545
$style = 'sol_incorrect';
549-
if ($onlyAcceptedAndRejected) {
546+
if ($onlyRejectedForIncorrect) {
550547
$result = 'rejected';
551548
}
552549
}

0 commit comments

Comments
 (0)