mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Remove use of databox singleton
This commit is contained in:
@@ -83,9 +83,10 @@ abstract class task_databoxAbstract extends task_abstract
|
||||
$this->sbas_id = (int) $row['sbas_id'];
|
||||
$this->log('This task works now on ' . phrasea::sbas_names($this->sbas_id));
|
||||
|
||||
$appbox = \appbox::get_instance(\bootstrap::getCore());
|
||||
try {
|
||||
// get the records to process
|
||||
$databox = databox::get_instance((int) $row['sbas_id']);
|
||||
$databox = $appbox->get_databox((int) $row['sbas_id']);
|
||||
} catch (Exception $e) {
|
||||
$this->log(sprintf('Warning : can\' connect to sbas(%s)', $row['sbas_id']));
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user