# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # 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 @@ -3025,7 +3030,7 @@ $cmsUserNeedsDb = false; $cmsRedirectFunc = array( $mainframe, 'redirect' ); $lang =& JFactory::getLanguage(); - $myLanguage = strtolower( preg_replace( '/^(\w+)/i', '\1', $lang->getName() ) ); + $myLanguage = strtolower( preg_replace( '/^(\w+).*$/i', '\1', $lang->getName() ) ); $outputCharst = 'UTF-8'; $getVarFunction = array( 'JRequest', 'getVar' ); $Jdocument =& JFactory::getDocument();