Upgrade to 3.7.0

This commit is contained in:
Bastian Allgeier
2022-06-27 10:02:22 +02:00
parent 0751a6510d
commit 1c22148d7b
674 changed files with 5052 additions and 3082 deletions

2
kirby/src/Cms/Language.php Normal file → Executable file
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';