mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Merge record and structure events inside new namespace
This commit is contained in:
@@ -257,6 +257,8 @@ class databox_status
|
||||
|
||||
unset(self::$_status[$databox->get_sbas_id()]->status[$bit]);
|
||||
|
||||
$app['dispatcher']->dispatch(RecordStructureEvents::STATUS_BIT_DELETED, new StatusBitDeletedEvent($databox, $bit));
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -348,6 +350,9 @@ class databox_status
|
||||
if ( ! isset(self::$_status[$sbas_id]->status[$bit]['img_off'])) {
|
||||
self::$_status[$sbas_id]->status[$bit]['img_off'] = null;
|
||||
}
|
||||
|
||||
$properties = self::$_status[$sbas_id]->status[$bit];
|
||||
$app['dispatcher']->dispatch(RecordStructureEvents::STATUS_BIT_UPDATED, new StatusBitUpdatedEvent($databox, $bit, $properties));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user