From 9916ad13445d5db81483b557856893cc23d14595 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 22 Aug 2020 18:23:01 +0800 Subject: [PATCH] fix incorrect behavior of `option_localized` function --- app/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers.php b/app/helpers.php index 221edd7a..0f9ba1e5 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -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); } }