@ -226,7 +226,7 @@ class ChamiloApi
public static function getLanguageVar($text, $prefix = '')
{
$text = api_replace_dangerous_char($text);
$text = str_replace(['-', ' '], '_', $text);
$text = str_replace(['-', ' ', '.'], '_', $text);
$text = preg_replace('/\_{1,}/', '_', $text);
//$text = str_replace('_', '', $text);
$text = api_underscore_to_camel_case($text);