Update commands

This commit is contained in:
Romain Neutron
2012-09-21 15:50:51 +02:00
parent ff1613b8d8
commit ab8d2fd6b4
3 changed files with 4 additions and 4 deletions

View File

@@ -55,11 +55,11 @@ class CreateCollection extends Command
$databox = $this->container['phraseanet.appbox']
->get_databox((int) $input->getArgument('databox_id'));
$new_collection = \collection::create($databox, $this->container['phraseanet.appbox'], $input->getArgument('collname'));
$new_collection = \collection::create($app, $databox, $this->container['phraseanet.appbox'], $input->getArgument('collname'));
if ($new_collection && $input->getOption('duplicate_rights_from_base_id')) {
$query = new \User_Query($this->container['phraseanet.appbox']);
$query = new \User_Query($this->container);
$total = $query->on_base_ids(array($input->getOption('duplicate_rights_from_base_id')))->get_total();
$n = 0;