From 3125dc0703f0d15875508c225003d53cf5370d1e Mon Sep 17 00:00:00 2001 From: danpros Date: Sat, 2 Mar 2024 09:29:54 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index b28e2e7..340cfb5 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -3353,7 +3353,12 @@ function blog_copyright() // Return blog language function blog_language() { - return str_replace('_', '-', config('language')); + $lang = config('language'); + if (!empty($lang)) { + $exp = explode('_', $lang); + return $exp[0] . '-' . $exp[1]; + } + return 'en-US'; } // Output head contents