MDL-40922 mod_folder: replaced the 'edit' add_to_log call with an event