mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
[ticket/16281] Fix Ajax refresh-data for extensions' Tab
PHPBB3-16281
This commit is contained in:
@@ -243,12 +243,20 @@ class acp_extensions
|
|||||||
'DISABLE' => $this->u_action . '&action=disable_pre&ext_name=' . urlencode($ext_name),
|
'DISABLE' => $this->u_action . '&action=disable_pre&ext_name=' . urlencode($ext_name),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$json_response = new \phpbb\json_response;
|
$data = array(
|
||||||
$json_response->send(array(
|
|
||||||
'EXT_ENABLE_SUCCESS' => true,
|
'EXT_ENABLE_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_ENABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
|
trigger_error($this->user->lang('EXTENSION_ENABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -299,12 +307,20 @@ class acp_extensions
|
|||||||
'DELETE_DATA' => $this->u_action . '&action=delete_data_pre&ext_name=' . urlencode($ext_name),
|
'DELETE_DATA' => $this->u_action . '&action=delete_data_pre&ext_name=' . urlencode($ext_name),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$json_response = new \phpbb\json_response;
|
$data = [
|
||||||
$json_response->send(array(
|
|
||||||
'EXT_DISABLE_SUCCESS' => true,
|
'EXT_DISABLE_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_DISABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
|
trigger_error($this->user->lang('EXTENSION_DISABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -361,12 +377,20 @@ class acp_extensions
|
|||||||
'ENABLE' => $this->u_action . '&action=enable_pre&ext_name=' . urlencode($ext_name),
|
'ENABLE' => $this->u_action . '&action=enable_pre&ext_name=' . urlencode($ext_name),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$json_response = new \phpbb\json_response;
|
$data = [
|
||||||
$json_response->send(array(
|
|
||||||
'EXT_DELETE_DATA_SUCCESS' => true,
|
'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);
|
trigger_error($this->user->lang('EXTENSION_DELETE_DATA_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user