Skip to content

Commit f826c49

Browse files
author
Roman Gsponer
committed
Fix language set
1 parent ff4d374 commit f826c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/License.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function extends($extends) {
130130
}
131131

132132
$prefix = $this->prefix;
133-
$lang = App::instance()->user()?->language() ?? App::instance()->currentLanguage()->code();
133+
$lang = App::instance()->user()?->language() ?? App::instance()->currentLanguage()?->code() ?? 'en';;
134134

135135
return A::merge($extends, [
136136
'api' => [

0 commit comments

Comments
 (0)