Permalink
Browse files

Rename plugins Twig extensions

Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
  • Loading branch information...
laps15 committed Aug 1, 2018
1 parent 76ad22c commit 9464cbc94a07d03e4370e0a5736cae1d048dac62
@@ -28,22 +28,22 @@ public function getFunctions()
{
return [
new TwigFunction(
'Plugins_checkboxCheck',
'checkbox_check',
'PhpMyAdmin\Plugins::checkboxCheck',
['is_safe' => ['html']]
),
new TwigFunction(
'Plugins_getChoice',
'get_choice',
'PhpMyAdmin\Plugins::getChoice',
['is_safe' => ['html']]
),
new TwigFunction(
'Plugins_getDefault',
'get_default_plugin',
'PhpMyAdmin\Plugins::getDefault',
['is_safe' => ['html']]
),
new TwigFunction(
'Plugins_getOptions',
'get_options',
'PhpMyAdmin\Plugins::getOptions',
['is_safe' => ['html']]
),
@@ -2,8 +2,8 @@
<fieldset>
{{ Url_getHiddenInputs(db) }}
<label>{% trans 'Select Export Relational Type' %}</label>
{{ Plugins_getChoice('Schema', 'export_type', export_list, 'format') }}
{{ get_choice('Schema', 'export_type', export_list, 'format') }}
<input type="hidden" name="page_number" value="{{ page }}" />
{{ Plugins_getOptions('Schema', export_list) }}
{{ get_options('Schema', export_list) }}
</fieldset>
</form>
@@ -132,7 +132,7 @@
<div class="formelementrow">
<input type="checkbox" name="allow_interrupt" value="yes" id="checkbox_allow_interrupt"
{{ Plugins_checkboxCheck('Import', 'allow_interrupt') }} />
{{ checkbox_check('Import', 'allow_interrupt') }} />
<label for="checkbox_allow_interrupt">
{% trans 'Allow the interruption of an import in case the script detects it is close to the PHP timeout limit. <em>(This might be a good way to import large files, however it can break transactions.)</em>' %}
</label>
@@ -144,15 +144,15 @@
{% trans 'Skip this number of queries (for SQL) starting from the first one:' %}
</label>
<input type="number" name="skip_queries" value="
{{- Plugins_getDefault('Import', 'skip_queries') -}}
{{- get_default_plugin('Import', 'skip_queries') -}}
" id="text_skip_queries" min="0" />
</div>
{% else %}
{# If timeout has passed,
do not show the Skip dialog to avoid the risk of someone
entering a value here that would interfere with "skip" #}
<input type="hidden" name="skip_queries" value="
{{- Plugins_getDefault('Import', 'skip_queries') -}}
{{- get_default_plugin('Import', 'skip_queries') -}}
" id="text_skip_queries" />
{% endif %}
</div>
@@ -166,7 +166,7 @@
<div class="importoptions">
<h3>{% trans 'Format:' %}</h3>
{{ Plugins_getChoice('Import', 'format', import_list) }}
{{ get_choice('Import', 'format', import_list) }}
<div id="import_notification"></div>
</div>
@@ -175,7 +175,7 @@
<p class="no_js_msg" id="scroll_to_options_msg">
{% trans 'Scroll down to fill in the options for the selected format and ignore the options for other formats.' %}
</p>
{{ Plugins_getOptions('Import', import_list) }}
{{ get_options('Import', import_list) }}
</div>
<div class="clearfloat"></div>

0 comments on commit 9464cbc

Please sign in to comment.