copy in start.php:
function notify_removeNew($guid) {
delete_entities("object", "notification", $guid);
}
function notify_removeNotify($guid) {
{
return delete_entity($guid);
}
}
copy in actions/delete.php:
<?php
gatekeeper();
$user = $_SESSION['user'];
$guid = get_input('guid');
$ajax = get_input('ajax');
if(!empty($guid)){
if(!super_notify_removeNotify($guid)) {
system_message(elgg_echo('notifications:delete:fail'));
}
// Just in case, remove the new notifies object
super_notify_removeNewNotifies($guid);
}
if(empty($ajax)) {
forward($_SERVER['HTTP_REFERER']);
}
?>
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.