Commit 35c0b01b authored by Nigel McNie's avatar Nigel McNie

Correct the init.php include so deleting groups doesn't hang. Fixes #1806.

parent 4a73dc7f
......@@ -27,7 +27,7 @@
define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require(dirname(dirname(__FILE__)) . '/init.php');
json_headers();
......@@ -48,7 +48,7 @@ if ($action == 'delete') {
delete_records('group', 'id', $id);
db_commit();
json_reply(null, get_string('deletegroupsuccessful'));
json_reply(null, get_string('deletegroup'));
}
json_reply('local', 'Unknown action');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment