mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 09:04:26 +02:00
Replace include/event function with method calls
- Updated scope of Model\Event methods - Updated use list
This commit is contained in:
parent
5aecc758f9
commit
f7e2071117
7 changed files with 55 additions and 53 deletions
|
@ -98,7 +98,7 @@ class Item extends BaseObject
|
|||
* @param integer $item_id Item ID that should be delete
|
||||
* @param integer $priority Priority for the notification
|
||||
*
|
||||
* @return $boolean success
|
||||
* @return boolean success
|
||||
*/
|
||||
public static function deleteById($item_id, $priority = PRIORITY_HIGH)
|
||||
{
|
||||
|
@ -153,7 +153,7 @@ class Item extends BaseObject
|
|||
|
||||
// If item is a link to an event, delete the event.
|
||||
if (intval($item['event-id'])) {
|
||||
event_delete($item['event-id']);
|
||||
Event::delete($item['event-id']);
|
||||
}
|
||||
|
||||
// If item has attachments, drop them
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue