Added the new parameter to the delete function.
This commit is contained in:
+1
-1
@@ -545,7 +545,7 @@ function events_content(App $a) {
|
||||
|
||||
// Delete only real events (no birthdays)
|
||||
if (DBM::is_result($ev) && $ev[0]['type'] == 'event') {
|
||||
$del = Item::deleteById($ev[0]['itemid']);
|
||||
$del = Item::deleteById($ev[0]['itemid'], PRIORITY_HIGH, local_user());
|
||||
}
|
||||
|
||||
if ($del == 0) {
|
||||
|
||||
+1
-1
@@ -877,7 +877,7 @@ function item_content(App $a) {
|
||||
$o = '';
|
||||
if (($a->argc == 3) && ($a->argv[1] === 'drop') && intval($a->argv[2])) {
|
||||
if (is_ajax()) {
|
||||
$o = Item::deleteById($a->argv[2]);
|
||||
$o = Item::deleteById($a->argv[2], PRIORITY_HIGH, local_user());
|
||||
} else {
|
||||
$o = drop_item($a->argv[2]);
|
||||
}
|
||||
|
||||
+2
-2
@@ -289,7 +289,7 @@ function photos_post(App $a)
|
||||
);
|
||||
if (DBM::is_result($r)) {
|
||||
foreach ($r as $rr) {
|
||||
Item::deleteById($rr['id']);
|
||||
Item::deleteById($rr['id'], PRIORITY_HIGH, $page_owner_uid);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ function photos_post(App $a)
|
||||
intval($page_owner_uid)
|
||||
);
|
||||
if (DBM::is_result($i)) {
|
||||
Item::deleteById($i[0]['id']);
|
||||
Item::deleteById($i[0]['id'], PRIORITY_HIGH, $page_owner_uid);
|
||||
|
||||
// Update the photo albums cache
|
||||
Photo::clearAlbumCache($page_owner_uid);
|
||||
|
||||
+1
-1
@@ -169,7 +169,7 @@ function videos_post(App $a) {
|
||||
);
|
||||
|
||||
if (DBM::is_result($i)) {
|
||||
Item::deleteById($i[0]['id']);
|
||||
Item::deleteById($i[0]['id'], PRIORITY_HIGH, local_user());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user