mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Replace app['phraseanet.appbox']->get_databox using trait
This commit is contained in:
@@ -58,7 +58,7 @@ class databox_status
|
||||
|
||||
public static function deleteIcon(Application $app, $databox_id, $bit, $switch)
|
||||
{
|
||||
$databox = $app['phraseanet.appbox']->get_databox($databox_id);
|
||||
$databox = $app->findDataboxById($databox_id);
|
||||
|
||||
$statusStructure = $app['factory.status-structure']->getStructure($databox);
|
||||
|
||||
@@ -88,7 +88,7 @@ class databox_status
|
||||
|
||||
public static function updateIcon(Application $app, $databox_id, $bit, $switch, UploadedFile $file)
|
||||
{
|
||||
$databox = $app['phraseanet.appbox']->get_databox($databox_id);
|
||||
$databox = $app->findDataboxById($databox_id);
|
||||
|
||||
$statusStructure = $app['factory.status-structure']->getStructure($databox);
|
||||
|
||||
|
Reference in New Issue
Block a user