Skip to content

Commit

Permalink
Avoid request params to use rendering HTML fc2blog#338
Browse files Browse the repository at this point in the history
  • Loading branch information
uzulla committed Aug 8, 2021
1 parent 0e80c66 commit 6797280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/twig_templates/admin/files/edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<form action="edit" method="post" id="sys-file-form" class="admin-form" enctype="multipart/form-data">

<input type="hidden" name="MAX_FILE_SIZE" value="{{ file_max_size }}"/>
<input type="hidden" name="id" value="{{ req.get('id') }}"/>
<input type="hidden" name="id" value="{{ file.id }}"/>
<input type="hidden" name="sig" value="{{ sig }}"/>

<a href="{{ file['path'] }}" target="_blank"><img src="{{ file['thumbnail_path'] }}" alt="{{ file.name }}"/></a>
<a href="{{ file['path'] }}" target="_blank"><img src="{{ file.thumbnail_path }}" alt="{{ file.name }}"/></a>

{% if errors.file.ext %}
<p class="error">{{ errors.file.ext }}</p>
Expand Down
2 changes: 1 addition & 1 deletion app/twig_templates/admin/files/edit_sp.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h2><span class="h2_inner">{{ _('Edit File') }}</span></h2>
<form action="edit" method="post" id="sys-file-form" class="admin-form" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="{{ max_file_size }}"/>
<input type="hidden" name="id" value="{{ req.get('id') }}"/>
<input type="hidden" name="id" value="{{ file.id }}"/>
<input type="hidden" name="sig" value="{{ sig }}"/>
<div class="btn_area">
<div class="up_file_btn">
Expand Down

0 comments on commit 6797280

Please sign in to comment.