diff --git a/lib/classes/API/V1/adapter.class.php b/lib/classes/API/V1/adapter.class.php index 0f89c3d8be..19a3952e48 100644 --- a/lib/classes/API/V1/adapter.class.php +++ b/lib/classes/API/V1/adapter.class.php @@ -10,6 +10,7 @@ */ use Alchemy\Phrasea\Application; +use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\Attribute\Status; use Alchemy\Phrasea\Border\Manager as BorderManager; use Symfony\Component\HttpFoundation\Request; @@ -663,7 +664,7 @@ class API_V1_adapter extends API_V1_Abstract $media = $app['mediavorus']->guess($file->getPathname()); - $Package = new Alchemy\Phrasea\Border\File($this->app, $media, $collection, $file->getClientOriginalName()); + $Package = new File($this->app, $media, $collection, $file->getClientOriginalName()); if ($request->get('status')) { $Package->addAttribute(new Status($app, $request->get('status'))); diff --git a/lib/classes/task/period/archive.class.php b/lib/classes/task/period/archive.class.php index 5b8f03238d..fbc455e16a 100644 --- a/lib/classes/task/period/archive.class.php +++ b/lib/classes/task/period/archive.class.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. */ +use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Metadata\Tag as PhraseaTag; use Alchemy\Phrasea\Border\Attribute as BorderAttribute; use Alchemy\Phrasea\Border\MetadataBag; @@ -1687,7 +1688,7 @@ class task_period_archive extends task_abstract $status = databox_status::operation_or($this->dependencyContainer, $status, $captionStatus); } } - $file = new \Alchemy\Phrasea\Border\File($this->dependencyContainer, $media, $collection); + $file = new File($this->dependencyContainer, $media, $collection); $file->addAttribute(new BorderAttribute\Status($this->dependencyContainer, $status));