Skill : Remove . from language variable names to avoid breakdown -refs BT#13887

pull/2458/head
Nicolas Ducoulombier 8 years ago
parent 49bb2540d9
commit f180a4c98b
  1. 2
      src/Chamilo/CoreBundle/Component/Utils/ChamiloApi.php

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

Loading…
Cancel
Save