1
0
Fork 0

Added the new parameter to the delete function.

This commit is contained in:
Michael 2018-05-26 21:38:45 +00:00
commit 54136f3a74
6 changed files with 10 additions and 10 deletions

View file

@ -321,7 +321,7 @@ function drop_items($items) {
if (count($items)) {
foreach ($items as $item) {
$owner = Item::deleteById($item);
$owner = Item::deleteById($item, PRIORITY_HIGH, local_user());
if ($owner && !$uid)
$uid = $owner;
}
@ -393,7 +393,7 @@ function drop_item($id) {
}
// delete the item
Item::deleteById($item['id']);
Item::deleteById($item['id'], PRIORITY_HIGH, local_user());
goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
//NOTREACHED