Upgrade to 3.7.0
This commit is contained in:
2
kirby/src/Cms/Language.php
Normal file → Executable file
2
kirby/src/Cms/Language.php
Normal file → Executable 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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user