diff --git a/lib/Commention.php b/lib/Commention.php index 54db03e..580625f 100644 --- a/lib/Commention.php +++ b/lib/Commention.php @@ -123,7 +123,13 @@ public function sourceFormatted(string $anonymous = null): ?string // Use single brackets (instead of double) to match the behavior // of Kirby’s `tt()` helper function. - return Str::template($translation, $replace, null, '{', '}'); + if (substr(\Kirby\Cms\App::version(), 0, 3) === '3.6') { + return Str::template($translation, $replace, ['fallback' => null, 'start' => '{', 'end' => '}']); + } + /* TODO: only keep array version once K3.6 is out */ + else { + return Str::template($translation, $replace, null, '{', '}'); + } } /**