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

pull/3063/head
Nicolas Ducoulombier 8 years ago
parent 422b656fa1
commit b6a08e7432
  1. 2
      src/Chamilo/CoreBundle/Component/Utils/ChamiloApi.php

@ -224,7 +224,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