Skip to content

Commit f180a4c

Browse files
committed
Skill : Remove . from language variable names to avoid breakdown -refs BT#13887
1 parent 49bb254 commit f180a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Chamilo/CoreBundle/Component/Utils/ChamiloApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public static function isAjaxRequest()
226226
public static function getLanguageVar($text, $prefix = '')
227227
{
228228
$text = api_replace_dangerous_char($text);
229-
$text = str_replace(['-', ' '], '_', $text);
229+
$text = str_replace(['-', ' ', '.'], '_', $text);
230230
$text = preg_replace('/\_{1,}/', '_', $text);
231231
//$text = str_replace('_', '', $text);
232232
$text = api_underscore_to_camel_case($text);

0 commit comments

Comments
 (0)