phpBB

Code Changes

File: includes/acp/acp_extensions.php

  Unmodified   Added   Modified   Removed
Line 243Line 243
						'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;
$json_response->send(array(

					$data = [


						'EXT_ENABLE_SUCCESS'	=> true,
'ACTIONS' => $actions,

						'EXT_ENABLE_SUCCESS'	=> true,
'ACTIONS' => $actions,

					));








						'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;


				trigger_error($this->user->lang('EXTENSION_ENABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;


Line 299Line 306
						'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;
$json_response->send(array(

					$data = [


						'EXT_DISABLE_SUCCESS'	=> true,
'ACTIONS' => $actions,

						'EXT_DISABLE_SUCCESS'	=> true,
'ACTIONS' => $actions,

					));








						'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;


				trigger_error($this->user->lang('EXTENSION_DISABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;


Line 361Line 375
						'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;
$json_response->send(array(

					$data = [


						'EXT_DELETE_DATA_SUCCESS'	=> true,
'ACTIONS' => $actions,

						'EXT_DELETE_DATA_SUCCESS'	=> true,
'ACTIONS' => $actions,

					));








						'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;


				trigger_error($this->user->lang('EXTENSION_DELETE_DATA_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;