diff -Naurw moodle-clean/moodle/blocks/mrbs/web/edit_entry_handler.php moodle-dev/blocks/mrbs/web/edit_entry_handler.php --- moodle-clean/moodle/blocks/mrbs/web/edit_entry_handler.php 2009-05-08 12:15:59.000000000 +0100 +++ moodle-dev/blocks/mrbs/web/edit_entry_handler.php 2009-05-08 12:22:59.000000000 +0100 @@ -243,6 +243,8 @@ $room_id, $create_by, $name, $type, $description, isset($rep_num_weeks) ? $rep_num_weeks : 0); + //Add to moodle logs + add_to_log(0, "mrbs", "add booking", "../../blocks/mrbs/web/view_entry.php?id=$new_id", "$name"); // Send a mail to the Administrator if (MAIL_ADMIN_ON_BOOKINGS or MAIL_AREA_ADMIN_ON_BOOKINGS or MAIL_ROOM_ADMIN_ON_BOOKINGS or MAIL_BOOKER) { // Send a mail only if this a new entry, or if this is an @@ -284,6 +286,8 @@ # Create the entry: $new_id = mrbsCreateSingleEntry($starttime, $endtime, $entry_type, $repeat_id, $room_id, $create_by, $name, $type, $description); + //Add to moodle logs + add_to_log(0, "mrbs", "edit booking", "../../blocks/mrbs/web/view_entry.php?id=$new_id", "$name"); // Send a mail to the Administrator if (MAIL_ADMIN_ON_BOOKINGS or MAIL_AREA_ADMIN_ON_BOOKINGS or MAIL_ROOM_ADMIN_ON_BOOKINGS or MAIL_BOOKER) { // Send a mail only if this a new entry, or if this is an