aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2019-12-31 23:29:52 +0100
committer3D-I <480857+3D-I@users.noreply.github.com>2019-12-31 23:31:13 +0100
commitd8dac3f80eee2c99cfb927a02d2b89b1e750d86e (patch)
treef1ead8edb5e9e9bc5eda7bdb464c91556ebe4820
parent6ee537b3f2f45b300e38a55759566abb0752ec0f (diff)
downloadforums-d8dac3f80eee2c99cfb927a02d2b89b1e750d86e.tar
forums-d8dac3f80eee2c99cfb927a02d2b89b1e750d86e.tar.gz
forums-d8dac3f80eee2c99cfb927a02d2b89b1e750d86e.tar.bz2
forums-d8dac3f80eee2c99cfb927a02d2b89b1e750d86e.tar.xz
forums-d8dac3f80eee2c99cfb927a02d2b89b1e750d86e.zip
[ticket/16281] Fix Ajax refresh-data for extensions' Tab
PHPBB3-16281
-rw-r--r--phpBB/includes/acp/acp_extensions.php44
1 files changed, 34 insertions, 10 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index 6ac70ce3a8..85a7e08a99 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -243,12 +243,20 @@ class acp_extensions
'DISABLE' => $this->u_action . '&amp;action=disable_pre&amp;ext_name=' . urlencode($ext_name),
]);
- $json_response = new \phpbb\json_response;
- $json_response->send(array(
+ $data = array(
'EXT_ENABLE_SUCCESS' => true,
'ACTIONS' => $actions,
- ));
+ );
+
+ $data['REFRESH_DATA'] = [
+ 'url' => '',
+ 'time' => 0,
+ ];
+
+ $json_response = new \phpbb\json_response;
+ $json_response->send($data);
}
+
trigger_error($this->user->lang('EXTENSION_ENABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;
@@ -299,12 +307,20 @@ class acp_extensions
'DELETE_DATA' => $this->u_action . '&amp;action=delete_data_pre&amp;ext_name=' . urlencode($ext_name),
]);
- $json_response = new \phpbb\json_response;
- $json_response->send(array(
+ $data = [
'EXT_DISABLE_SUCCESS' => true,
'ACTIONS' => $actions,
- ));
+ ];
+
+ $data['REFRESH_DATA'] = [
+ 'url' => '',
+ 'time' => 0,
+ ];
+
+ $json_response = new \phpbb\json_response;
+ $json_response->send($data);
}
+
trigger_error($this->user->lang('EXTENSION_DISABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;
@@ -361,12 +377,20 @@ class acp_extensions
'ENABLE' => $this->u_action . '&amp;action=enable_pre&amp;ext_name=' . urlencode($ext_name),
]);
- $json_response = new \phpbb\json_response;
- $json_response->send(array(
+ $data = [
'EXT_DELETE_DATA_SUCCESS' => true,
- 'ACTIONS' => $actions,
- ));
+ 'ACTIONS' => $actions,
+ ];
+
+ $data['REFRESH_DATA'] = [
+ 'url' => '',
+ 'time' => 0,
+ ];
+
+ $json_response = new \phpbb\json_response;
+ $json_response->send($data);
}
+
trigger_error($this->user->lang('EXTENSION_DELETE_DATA_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;