From edaeda8dac821f85f056b9e2de2cb458e9757a72 Mon Sep 17 00:00:00 2001 From: eSilverStrike Date: Thu, 24 Sep 2020 11:10:47 -0400 Subject: [PATCH] Fix for inLanguage Structured Data for single language sites. Fir for #1075 --- system/classes/structureddata.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/classes/structureddata.class.php b/system/classes/structureddata.class.php index ac78759f6..b0591d59d 100644 --- a/system/classes/structureddata.class.php +++ b/system/classes/structureddata.class.php @@ -204,7 +204,7 @@ private function create_name($type, $id) */ public function add_type($type, $id, $sd_type, $properties = array(), $attributes = array(), &$data = null) { - global $_CONF; + global $_CONF, $LANG_ISO639_1; // Create structured data name $sd_name = $this->create_name($type, $id); @@ -253,7 +253,7 @@ public function add_type($type, $id, $sd_type, $properties = array(), $attribute } if (empty($lang_id)) { // Assume default language of site - $lang_id = COM_getLanguageId($_CONF['language_site_default']); + $lang_id = $LANG_ISO639_1; } $data['inLanguage'] = $lang_id; break;