Skip to content

Commit

Permalink
Rename Transformation Twig extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
  • Loading branch information
laps15 committed Aug 3, 2018
1 parent 0ba17c6 commit ed8aadd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libraries/classes/Twig/TransformationsExtension.php
Expand Up @@ -30,11 +30,11 @@ public function getFunctions()
$transformations = new Transformations(); $transformations = new Transformations();
return [ return [
new TwigFunction( new TwigFunction(
'Transformations_getDescription', 'get_description',
[$transformations, 'getDescription'] [$transformations, 'getDescription']
), ),
new TwigFunction( new TwigFunction(
'Transformations_getName', 'get_name',
[$transformations, 'getName'] [$transformations, 'getName']
), ),
]; ];
Expand Down
4 changes: 2 additions & 2 deletions templates/columns_definitions/transformation.twig
Expand Up @@ -9,11 +9,11 @@
and mime_map[column_meta['Field']][type] matches and mime_map[column_meta['Field']][type] matches
'@' ~ available_mime[type ~ '_file_quoted'][mimekey] ~ '3?@i' '@' ~ available_mime[type ~ '_file_quoted'][mimekey] ~ '3?@i'
? 'selected ' %} ? 'selected ' %}
{% set tooltip = Transformations_getDescription( {% set tooltip = get_description(
available_mime[type ~ '_file'][mimekey] available_mime[type ~ '_file'][mimekey]
) %} ) %}
{% set parts = transform|split(':') %} {% set parts = transform|split(':') %}
{% set name = Transformations_getName( {% set name = get_name(
available_mime[type ~ '_file'][mimekey] available_mime[type ~ '_file'][mimekey]
) ~ ' (' ~ parts[0]|lower ~ ':' ~ parts[1] ~ ')' %} ) ~ ' (' ~ parts[0]|lower ~ ':' ~ parts[1] ~ ')' %}
<option value="{{ available_mime[type ~ '_file'][mimekey] }}" <option value="{{ available_mime[type ~ '_file'][mimekey] }}"
Expand Down

0 comments on commit ed8aadd

Please sign in to comment.