Skip to content

Commit 3125dc0

Browse files
committed
Update functions.php
1 parent 766f6c5 commit 3125dc0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

system/includes/functions.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -3353,7 +3353,12 @@ function blog_copyright()
33533353
// Return blog language
33543354
function blog_language()
33553355
{
3356-
return str_replace('_', '-', config('language'));
3356+
$lang = config('language');
3357+
if (!empty($lang)) {
3358+
$exp = explode('_', $lang);
3359+
return $exp[0] . '-' . $exp[1];
3360+
}
3361+
return 'en-US';
33573362
}
33583363

33593364
// Output head contents

0 commit comments

Comments
 (0)