1
0
Fork 0

The delete function is now changed to the new function

This commit is contained in:
Michael 2018-01-17 23:22:01 +00:00
commit 2d66242b4f
8 changed files with 42 additions and 212 deletions

View file

@ -10,6 +10,7 @@ use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
use Friendica\Model\Profile;
use Friendica\Model\Item;
require_once 'include/bbcode.php';
require_once 'include/datetime.php';
@ -547,7 +548,7 @@ function events_content(App $a) {
// Delete only real events (no birthdays)
if (DBM::is_result($ev) && $ev[0]['type'] == 'event') {
$del = drop_item($ev[0]['itemid'], false);
$del = Item::delete($ev[0]['itemid']);
}
if ($del == 0) {