Unify lang and locale config files

This commit is contained in:
Kijin Sung 2016-07-03 23:58:11 +09:00
parent 038a158dc7
commit 07d97242ec
7 changed files with 26 additions and 41 deletions

View file

@ -449,7 +449,7 @@ class HTMLDisplayHandler
$locales = (include \RX_BASEDIR . 'common/defaults/locales.php');
if (isset($locales[$lang_type]))
{
Context::addOpenGraphData('og:locale', $locales[$lang_type]);
Context::addOpenGraphData('og:locale', $locales[$lang_type]['locale']);
}
if ($page_type === 'article' && $oDocument->getLangCode() !== $lang_type && isset($locales[$oDocument->getLangCode()]))
{