Skip to content
Permalink
Browse files

fixes #1 sobipro plugin limited to en-GB

  • Loading branch information...
svanschu committed Nov 13, 2016
1 parent f83b0f0 commit 9d7a3a07f48c846749eaf974c5bf112e52075dba
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/schuweb_sitemap/com_sobipro/com_sobipro.php
@@ -135,6 +135,8 @@ static function getCategoryTree($xmap, $parent, $sid, &$params)
{
$database = JFactory::getDBO();
$lang = JFactory::getLanguage();
$query =
"SELECT a.id,a.nid, a.name, b.pid as pid, c.sValue as name "
. "\n FROM #__sobipro_object AS a, #__sobipro_relations AS b, #__sobipro_language as c "
@@ -144,7 +146,7 @@ static function getCategoryTree($xmap, $parent, $sid, &$params)
. " AND a.state=1 "
. " AND a.approved=1 "
. " AND c.sKey='name'"
. " AND c.language='en-GB'"
. " AND c.language='" . $database->escape($lang->getTag()) . "'"
. " AND c.oType='category'"
. " AND c.id=a.id"
. "\n AND a.id=b.id "

0 comments on commit 9d7a3a0

Please sign in to comment.
You can’t perform that action at this time.