if (!DBA::isResult($item)) {
notice(L10n::t('Item not found.') . EOL);
- goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
+ goaway('/network');
}
if ($item['deleted']) {
}
// Now check how the user responded to the confirmation query
if (!empty($_REQUEST['canceled'])) {
- goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
+ goaway('/item/drop/' . $id);
}
// delete the item
Item::deleteForUser(['id' => $item['id']], local_user());
- goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
+ goaway('/item/drop/' . $id);
//NOTREACHED
} else {
notice(L10n::t('Permission denied.') . EOL);
- goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
+ goaway('/item/drop/' . $id);
//NOTREACHED
}
}
Worker::add(PRIORITY_HIGH, "Notifier", "event", $item_id);
}
- goaway($_SESSION['return_url']);
+ goaway('/events');
}
function events_content(App $a)
file_tag_unsave_file(local_user(),$item_id,$term, $category);
}
- if (x($_SESSION,'return_url')) {
- goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
- }
+ goaway('/network');
killme();
}