[ticket/16287] Use twig syntax and fix coding guidelines issues

PHPBB3-16287
This commit is contained in:
Marc Alexander 2020-01-02 21:06:58 +01:00
parent f866a8fd1b
commit b3f80239c1
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 7 additions and 7 deletions

View file

@ -39,7 +39,7 @@
</dl> </dl>
</div> </div>
<script> <script>
var statsData = {S_STATS_DATA}; var statsData = {{ S_STATS_DATA }};
</script> </script>
<!-- EVENT acp_help_phpbb_stats_after --> <!-- EVENT acp_help_phpbb_stats_after -->
<fieldset> <fieldset>
@ -54,11 +54,11 @@
<form action="{U_COLLECT_STATS}" method="post" target="questionaire_result" id="questionnaire-form"> <form action="{U_COLLECT_STATS}" method="post" target="questionaire_result" id="questionnaire-form">
<fieldset> <fieldset>
<p class="submit-buttons"> <p class="submit-buttons">
<!-- BEGIN providers --> {% for providers in loops.providers %}
<!-- BEGIN values --> {% for values in providers.values %}
<input type="hidden" name="{providers.NAME}[{providers.values.KEY}]" value="{providers.values.VALUE}" /> <input type="hidden" name="{{ providers.NAME }}[{{ values.KEY }}]" value="{{ values.VALUE }}" />
<!-- END values --> {% endfor %}
<!-- END providers --> {% endfor %}
<input class="button1" type="submit" id="submit_stats" name="submit" value="{L_SEND_STATISTICS}" /> <input class="button1" type="submit" id="submit_stats" name="submit" value="{L_SEND_STATISTICS}" />
</p> </p>
</fieldset> </fieldset>

View file

@ -124,7 +124,7 @@ class phpbb_questionnaire_php_data_provider
'zend.ze1_compatibility_mode' => (int) @ini_get('zend.ze1_compatibility_mode'), 'zend.ze1_compatibility_mode' => (int) @ini_get('zend.ze1_compatibility_mode'),
'unicode.semantics' => (int) @ini_get('unicode.semantics'), 'unicode.semantics' => (int) @ini_get('unicode.semantics'),
'zend_thread_safty' => (int) function_exists('zend_thread_id'), 'zend_thread_safty' => (int) function_exists('zend_thread_id'),
'extensions' => implode(",", get_loaded_extensions()), 'extensions' => implode(',', get_loaded_extensions()),
); );
} }
} }