mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
Replace app['phraseanet.appbox']->get_databox using trait
This commit is contained in:
4
lib/classes/cache/databox.php
vendored
4
lib/classes/cache/databox.php
vendored
@@ -29,7 +29,7 @@ class cache_databox
|
||||
|
||||
self::$refreshing = true;
|
||||
|
||||
$databox = $app['phraseanet.appbox']->get_databox((int) $sbas_id);
|
||||
$databox = $app->findDataboxById((int) $sbas_id);
|
||||
|
||||
$date = new \DateTime('-3 seconds');
|
||||
|
||||
@@ -144,7 +144,7 @@ class cache_databox
|
||||
*/
|
||||
public static function update(Application $app, $sbas_id, $type, $value = '')
|
||||
{
|
||||
$databox = $app['phraseanet.appbox']->get_databox($sbas_id);
|
||||
$databox = $app->findDataboxById($sbas_id);
|
||||
$connbas = $databox->get_connection();
|
||||
|
||||
$sql = 'SELECT distinct site_id as site_id
|
||||
|
Reference in New Issue
Block a user