mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Add labels to databoxes
This commit is contained in:
@@ -38,7 +38,7 @@ class module_console_fieldsList extends Command
|
||||
$output->writeln(
|
||||
sprintf(
|
||||
"\n ---------------- \nOn databox %s (sbas_id %d) :\n"
|
||||
, $databox->get_viewname()
|
||||
, $databox->get_label($this->container['locale.I18n'])
|
||||
, $databox->get_sbas_id()
|
||||
)
|
||||
);
|
||||
|
@@ -53,7 +53,7 @@ class module_console_sphinxGenerateSuggestion extends Command
|
||||
|
||||
$databox = $this->getService('phraseanet.appbox')->get_databox($sbas_id);
|
||||
|
||||
$output->writeln("process Databox " . $databox->get_viewname() . " / $index\n");
|
||||
$output->writeln("process Databox " . $databox->get_label($this->container['locale.I18n']) . " / $index\n");
|
||||
|
||||
if ( ! is_executable("/usr/local/bin/indexer")) {
|
||||
$output->writeln("<error>'/usr/local/bin/indexer' is not executable</error>");
|
||||
|
@@ -126,7 +126,7 @@ class module_console_systemExport extends Command
|
||||
$total = $errors = 0;
|
||||
|
||||
foreach ($this->getService('phraseanet.appbox')->get_databoxes() as $databox) {
|
||||
$output->writeln(sprintf("Processing <info>%s</info>", $databox->get_viewname()));
|
||||
$output->writeln(sprintf("Processing <info>%s</info>", $databox->get_label($this->container['locale.I18n'])));
|
||||
|
||||
if (count($restrictSbasIds) > 0 && ! in_array($databox->get_sbas_id(), $restrictSbasIds)) {
|
||||
$output->writeln(sprintf("Databox not selected, bypassing ..."));
|
||||
|
Reference in New Issue
Block a user