mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
[SearchEngine] Integrate unicode service provider
This commit is contained in:
@@ -125,8 +125,6 @@ class module_console_systemExport extends Command
|
||||
|
||||
$total = $errors = 0;
|
||||
|
||||
$unicode = new \unicode();
|
||||
|
||||
foreach ($this->getService('phraseanet.appbox')->get_databoxes() as $databox) {
|
||||
$output->writeln(sprintf("Processing <info>%s</info>", $databox->get_viewname()));
|
||||
|
||||
@@ -155,7 +153,7 @@ class module_console_systemExport extends Command
|
||||
}
|
||||
|
||||
$local_export = $export_directory
|
||||
. '/' . $unicode->remove_nonazAZ09($databox->get_viewname(), true, true)
|
||||
. '/' . $this->container['unicode']->remove_nonazAZ09($databox->get_viewname(), true, true)
|
||||
. '/';
|
||||
|
||||
$this->getService('filesystem')->mkdir($local_export);
|
||||
@@ -195,7 +193,7 @@ class module_console_systemExport extends Command
|
||||
}
|
||||
|
||||
if ($sanitize) {
|
||||
$filename = $unicode->remove_nonazAZ09($record->get_original_name(), true, true, true);
|
||||
$filename = $this->container['unicode']->remove_nonazAZ09($record->get_original_name(), true, true, true);
|
||||
} else {
|
||||
$filename = $record->get_original_name();
|
||||
}
|
||||
|
Reference in New Issue
Block a user