# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/plugin.foundation.php +++ administrator/components/com_comprofiler/plugin.foundation.php @@ -58,6 +58,9 @@ } } $cleanedANDpubAccess = ' AND published = 1 AND access IN (' . implode( ',', cbArrayToInts( $viewLevels ) ) . ')'; + if ( checkJversion() >= 2 ) { + $cleanedANDpubAccess .= ' AND ' . $_CB_database->NameQuote( 'language' ) . ' IN ( ' . $_CB_database->Quote( $_CB_framework->getCfg( 'lang_tag' ) ) . ', ' . $_CB_database->Quote( '*' ) . ' )'; + } if ( $task !== 'userprofile' && is_string( $task ) ) { $_CB_database->setQuery( 'SELECT id FROM #__menu WHERE link LIKE ' . $_CB_database->Quote( 'index.php?option=com_comprofiler&task=' . $_CB_database->getEscaped( $task, true ) . '%', false )