aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2020-01-01 00:33:59 +0100
committer3D-I <480857+3D-I@users.noreply.github.com>2020-01-01 00:34:05 +0100
commit7e5d0b9ec8568ea12bb2d8ef7fc7501ed17dce99 (patch)
treeb6c981e123a87edff9f5a51eacd49401e42bf2e8 /phpBB
parent314dfb294a210524783ee11d653f7c737bc46f15 (diff)
downloadforums-7e5d0b9ec8568ea12bb2d8ef7fc7501ed17dce99.tar
forums-7e5d0b9ec8568ea12bb2d8ef7fc7501ed17dce99.tar.gz
forums-7e5d0b9ec8568ea12bb2d8ef7fc7501ed17dce99.tar.bz2
forums-7e5d0b9ec8568ea12bb2d8ef7fc7501ed17dce99.tar.xz
forums-7e5d0b9ec8568ea12bb2d8ef7fc7501ed17dce99.zip
[ticket/16281] Fix Ajax refresh-data for extensions' Tab
PHPBB3-16281
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/adm/style/acp_ext_actions.html7
-rw-r--r--phpBB/includes/acp/acp_extensions.php27
2 files changed, 16 insertions, 18 deletions
diff --git a/phpBB/adm/style/acp_ext_actions.html b/phpBB/adm/style/acp_ext_actions.html
index 6f2341f381..6b59ab7180 100644
--- a/phpBB/adm/style/acp_ext_actions.html
+++ b/phpBB/adm/style/acp_ext_actions.html
@@ -1,6 +1,7 @@
{% for action in enabled.actions %}
-<a href="{{ action.U_ACTION }}"{% if action.L_ACTION_EXPLAIN %} title="{{ action.L_ACTION_EXPLAIN }}"{% endif %}{% if action.COLOR %} style="color: {{ action.COLOR }};"{% endif %} data-ajax="{{ action.ACTION_AJAX }}" data-refresh="true">{{ action.L_ACTION }}</a>{% if not action.S_LAST_ROW %}&nbsp;|&nbsp;{% endif %}
+ <a href="{{ action.U_ACTION }}"{% if action.L_ACTION_EXPLAIN %} title="{{ action.L_ACTION_EXPLAIN }}"{% endif %}{% if action.COLOR %} style="color: {{ action.COLOR }};"{% endif %} data-ajax="{{ action.ACTION_AJAX }}" data-refresh="true">{{ action.L_ACTION }}</a>{% if not action.S_LAST_ROW %}&nbsp;|&nbsp;{% endif %}
{% endfor %}
+
{% for action in disabled.actions %}
-<a href="{{ action.U_ACTION }}"{% if action.L_ACTION_EXPLAIN %} title="{{ action.L_ACTION_EXPLAIN }}"{% endif %}{% if action.COLOR %} style="color: {{ action.COLOR }};"{% endif %} data-ajax="{{ action.ACTION_AJAX }}" data-refresh="true">{{ action.L_ACTION }}</a>{% if not action.S_LAST_ROW %}&nbsp;|&nbsp;{% endif %}
-{% endfor %} \ No newline at end of file
+ <a href="{{ action.U_ACTION }}"{% if action.L_ACTION_EXPLAIN %} title="{{ action.L_ACTION_EXPLAIN }}"{% endif %}{% if action.COLOR %} style="color: {{ action.COLOR }};"{% endif %} data-ajax="{{ action.ACTION_AJAX }}" data-refresh="true">{{ action.L_ACTION }}</a>{% if not action.S_LAST_ROW %}&nbsp;|&nbsp;{% endif %}
+{% endfor %}
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index b02d9710c0..86966541be 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -246,11 +246,10 @@ class acp_extensions
$data = [
'EXT_ENABLE_SUCCESS' => true,
'ACTIONS' => $actions,
- ];
-
- $data['REFRESH_DATA'] = [
- 'url' => '',
- 'time' => 0,
+ 'REFRESH_DATA' => [
+ 'url' => '',
+ 'time' => 0,
+ ],
];
$json_response = new \phpbb\json_response;
@@ -310,11 +309,10 @@ class acp_extensions
$data = [
'EXT_DISABLE_SUCCESS' => true,
'ACTIONS' => $actions,
- ];
-
- $data['REFRESH_DATA'] = [
- 'url' => '',
- 'time' => 0,
+ 'REFRESH_DATA' => [
+ 'url' => '',
+ 'time' => 0,
+ ],
];
$json_response = new \phpbb\json_response;
@@ -380,11 +378,10 @@ class acp_extensions
$data = [
'EXT_DELETE_DATA_SUCCESS' => true,
'ACTIONS' => $actions,
- ];
-
- $data['REFRESH_DATA'] = [
- 'url' => '',
- 'time' => 0,
+ 'REFRESH_DATA' => [
+ 'url' => '',
+ 'time' => 0,
+ ],
];
$json_response = new \phpbb\json_response;