Refactor "sanitize_identifier" and "sanitize_variable_name"custom TWIG functions to "sanitize(FOO)"

Note: FOO is one of \utils::ENUM_SANITIZATION_FILTER_XXX
This commit is contained in:
Molkobain
2021-02-15 16:28:34 +01:00
parent 44587663bb
commit eea8ceda63
4 changed files with 64 additions and 60 deletions

View File

@@ -22,7 +22,7 @@
{% endblock %}
{% if aPage.aJsFiles is not empty %}
{% set sId = oUIBlock.GetId() | sanitize_variable_name %}
{% set sId = oUIBlock.GetId() | sanitize(constant('utils::ENUM_SANITIZATION_FILTER_VARIABLE_NAME')) %}
{% block iboPageJsFiles %}
<script type="text/javascript">
var aFilesToLoad{{ sId }} = [];