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 c9f893a commit 9ec94bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/twig_templates/admin/blog_plugins/edit_sp.twig
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<div class="btn_area">
<ul class="btn_area_inner">
<li>
<a href="{{ url(req, 'blog_plugins', 'delete', {id: req.get('id'), sig: sig}) }}" class="btn_contents touch"
<a href="{{ url(req, 'blog_plugins', 'delete', {id: blog_plugin.id, sig: sig}) }}" class="btn_contents touch"
onclick="return confirm('{{ _('Are you sure you want to delete?') }}');"><i class="delete_icon btn_icon"></i>{{ _('Delete') }}</a>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/twig_templates/admin/categories/edit_sp.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</li>
{% if category.id != 1 %}
<li>
<a href="{{ url(req, 'Categories', 'delete', {id: req.get('id'), sig: sig}) }}" class="btn_contents touch"
<a href="{{ url(req, 'Categories', 'delete', {id: category.id, sig: sig}) }}" class="btn_contents touch"
onclick="return confirm('{{ _('If the child category exists\nRemove all along with the child category, but do you really want?') }}');"><i class="delete_icon btn_icon"></i>{{ _('Delete') }}</a>
</li>
{% endif %}
Expand Down

0 comments on commit 9ec94bf

Please sign in to comment.