diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-08-24 16:39:25 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:15 +0200 |
commit | e7e09f8da26abf0d4e625653d14d68774050a244 (patch) | |
tree | 94bfa8d1ebffab7be6599488805d8e5a4417c3df /phpBB/includes/acp/acp_bots.php | |
parent | fc7cb6a70b9e0422bf5658bb9f49de831be08718 (diff) | |
download | forums-e7e09f8da26abf0d4e625653d14d68774050a244.tar forums-e7e09f8da26abf0d4e625653d14d68774050a244.tar.gz forums-e7e09f8da26abf0d4e625653d14d68774050a244.tar.bz2 forums-e7e09f8da26abf0d4e625653d14d68774050a244.tar.xz forums-e7e09f8da26abf0d4e625653d14d68774050a244.zip |
[ticket/10272] AJAXified the bots page in the ACP.
PHPBB3-10272
Diffstat (limited to 'phpBB/includes/acp/acp_bots.php')
-rw-r--r-- | phpBB/includes/acp/acp_bots.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_bots.php b/phpBB/includes/acp/acp_bots.php index f080b3c9fb..b9dd6664f4 100644 --- a/phpBB/includes/acp/acp_bots.php +++ b/phpBB/includes/acp/acp_bots.php @@ -24,7 +24,7 @@ class acp_bots function main($id, $mode) { - global $config, $db, $user, $auth, $template, $cache; + global $config, $db, $user, $auth, $template, $cache, $request; global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix; $action = request_var('action', ''); @@ -352,6 +352,14 @@ class acp_bots break; } + + if ($request->is_ajax() && ($action == 'activate' || $action == 'deactivate')) + { + $json_response = new phpbb_json_response; + $json_response->send(array( + 'text' => $user->lang['BOT_' . (($action == 'activate') ? 'DE' : '') . 'ACTIVATE'], + )); + } $s_options = ''; $_options = array('activate' => 'BOT_ACTIVATE', 'deactivate' => 'BOT_DEACTIVATE', 'delete' => 'DELETE'); |