# 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/controller/controller.users.php +++ /administrator/components/com_comprofiler/controller/controller.users.php @@ -257,7 +257,20 @@ // do not do this otherwise substitutions do not work: // CBuser::setUserGetCBUserInstance( $rows[$k] ); } - \ No newline at end of file + + // translate usergroups for j1.6+ + if ( checkJversion() == 2 ) { + foreach ( $rows as $row ) { + $groupnames = explode( ', ', $row->groupname ); + + for ( $i = 0, $n = count( $groupnames ); $i < $n; $i++ ) { + $groupnames[$i] = JText::_( $groupnames[$i] ); + } + + $row->groupname = implode( ', ', $groupnames ); + } + } + \ No newline at end of file $template = 'SELECT COUNT(s.userid) FROM #__session AS s WHERE s.userid = '; $n = count( $rows ); for ( $i = 0; $i < $n; $i++ ) {