mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Update functions.php
This commit is contained in:
parent
766f6c522d
commit
3125dc0703
1 changed files with 6 additions and 1 deletions
|
|
@ -3353,7 +3353,12 @@ function blog_copyright()
|
||||||
// Return blog language
|
// Return blog language
|
||||||
function 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
|
// Output head contents
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue