Permalink
Browse files

Rename ServerPrivileges Twig extension

Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
  • Loading branch information...
laps15 committed Aug 1, 2018
1 parent 78c1d9e commit d13a6363e51cb7e4118c357ac13dedfa4310061e
@@ -31,7 +31,7 @@ public function getFunctions()
$serverPrivileges = new Privileges(new Template());
return [
new TwigFunction(
'ServerPrivileges_formatPrivilege',
'format_privilege',
[$serverPrivileges, 'formatPrivilege'],
['is_safe' => ['html']]
),
@@ -7,7 +7,7 @@
</legend>
{% for priv in table %}
{% set checked = row[priv[0] ~ '_priv'] is defined and row[priv[0] ~ '_priv'] == 'Y' ? ' checked="checked"' %}
{% set formatted_priv = ServerPrivileges_formatPrivilege(priv, true) %}
{% set formatted_priv = format_privilege(priv, true) %}
<div class="item">
<input type="checkbox" class="checkall" name="{{ priv[0] }}_priv" id="checkbox_{{ priv[0] }}_priv"
value="Y" title="{{ priv[2] }}" {{ checked }} />

0 comments on commit d13a636

Please sign in to comment.