Upgrade to 3.7.0

This commit is contained in:
Bastian Allgeier
2022-06-27 11:59:19 +02:00
parent 0751a6510d
commit 1c22148d7b
674 changed files with 5052 additions and 3082 deletions
Regular → Executable
+1 -1
View File
@@ -340,7 +340,7 @@ class Language extends Model
*/
public static function loadRules(string $code)
{
$kirby = kirby();
$kirby = App::instance();
$code = Str::contains($code, '.') ? Str::before($code, '.') : $code;
$file = $kirby->root('i18n:rules') . '/' . $code . '.json';