Skip to content

Commit a278786

Browse files
committed
And second remark
1 parent b08f9ef commit a278786

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webapp/src/Twig/TwigExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,16 @@ public function printelapsedminutes(float $start, float $end): string
204204
/**
205205
* Print a time formatted as specified. The format is according to date().
206206
* @param Contest|null $contest If given, print time relative to that contest start.
207-
* @param bool $squash, When true and contest is given replace time with before/after.
207+
* @param bool $maskOutsideContest, When true and contest is given replace time with before/after.
208208
*/
209-
public function printtime(string|float|null $datetime, ?string $format = null, ?Contest $contest = null, bool $squash = true): string
209+
public function printtime(string|float|null $datetime, ?string $format = null, ?Contest $contest = null, bool $maskOutsideContest = true): string
210210
{
211211
if ($datetime === null) {
212212
$datetime = Utils::now();
213213
}
214214
if ($contest !== null && $this->config->get('show_relative_time')) {
215215
$relativeTime = $contest->getContestTime((float)$datetime);
216-
if ($squash) {
216+
if ($maskOutsideContest) {
217217
if ($relativeTime < 0) {
218218
return "Before contest";
219219
}

0 commit comments

Comments
 (0)