fix incorrect behavior of option_localized function

This commit is contained in:
Pig Fang 2020-08-22 18:23:01 +08:00
parent 5f4ad85f0f
commit 9916ad1344
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -80,6 +80,6 @@ if (!function_exists('option')) {
if (!function_exists('option_localized')) {
function option_localized($key = null, $default = null, $raw = false)
{
return option($key.'_'.config('app.locale'), option($key));
return option($key.'_'.config('app.locale'), option($key, $default), $raw);
}
}