mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Cleanup after merge
This commit is contained in:
@@ -44,7 +44,7 @@ class module_console_checkExtension extends Command
|
|||||||
if (!extension_loaded('phrasea2'))
|
if (!extension_loaded('phrasea2'))
|
||||||
printf("Missing Extension php-phrasea");
|
printf("Missing Extension php-phrasea");
|
||||||
|
|
||||||
$appbox = \appbox::get_instance();
|
$appbox = \appbox::get_instance(\bootstrap::getCore());
|
||||||
$registry = $appbox->get_registry();
|
$registry = $appbox->get_registry();
|
||||||
|
|
||||||
$usr_id = $input->getOption('usr_id');
|
$usr_id = $input->getOption('usr_id');
|
||||||
|
@@ -139,7 +139,7 @@ class module_console_systemExport extends Command
|
|||||||
$output->writeln("Export datas from selected base_ids");
|
$output->writeln("Export datas from selected base_ids");
|
||||||
}
|
}
|
||||||
|
|
||||||
$appbox = \appbox::get_instance();
|
$appbox = \appbox::get_instance(\bootstrap::getCore());
|
||||||
|
|
||||||
$total = $errors = 0;
|
$total = $errors = 0;
|
||||||
|
|
||||||
|
@@ -75,14 +75,12 @@ class module_console_taskrun extends Command
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../lib/bootstrap.php';
|
|
||||||
|
|
||||||
$task_id = (int) $input->getArgument('task_id');
|
$task_id = (int) $input->getArgument('task_id');
|
||||||
|
|
||||||
if ($task_id <= 0 || strlen($task_id) !== strlen($input->getArgument('task_id')))
|
if ($task_id <= 0 || strlen($task_id) !== strlen($input->getArgument('task_id')))
|
||||||
throw new \RuntimeException('Argument must be an Id.');
|
throw new \RuntimeException('Argument must be an Id.');
|
||||||
|
|
||||||
$appbox = appbox::get_instance();
|
$appbox = \appbox::get_instance(\bootstrap::getCore());
|
||||||
$task_manager = new task_manager($appbox);
|
$task_manager = new task_manager($appbox);
|
||||||
$this->task = $task_manager->get_task($task_id);
|
$this->task = $task_manager->get_task($task_id);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user