mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Fix build
This commit is contained in:
@@ -576,16 +576,17 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
|
||||
':name' => $this->get_name(),
|
||||
);
|
||||
|
||||
$this->width = $media->getWidth();
|
||||
$this->height = $media->getHeight();
|
||||
|
||||
unset($media);
|
||||
|
||||
$stmt = $this->record->get_databox()->get_connection()->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
$stmt->closeCursor();
|
||||
|
||||
$this->width = $media->getWidth();
|
||||
$this->height = $media->getHeight();
|
||||
|
||||
$this->delete_data_from_cache();
|
||||
|
||||
unset($media);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
@@ -718,7 +718,9 @@ abstract class task_abstract
|
||||
|
||||
$tid = $appbox->get_connection()->lastInsertId();
|
||||
|
||||
return new $class_name($tid);
|
||||
$core = \bootstrap::getCore();
|
||||
|
||||
return new $class_name($tid, $core['monolog']);
|
||||
}
|
||||
|
||||
public function getUsage()
|
||||
|
@@ -15,7 +15,10 @@ class task_period_archiveTest extends \PhraseanetPHPUnitAbstract
|
||||
$appbox = \appbox::get_instance(\bootstrap::getCore('test'));
|
||||
$task = \task_period_archive::create($appbox, 'task_period_archive');
|
||||
|
||||
self::$object = new archiveTester($task->getID(), self::$core['monolog']);
|
||||
$logger = new \Monolog\Logger('test');
|
||||
$logger->pushHandler(new \Monolog\Handler\NullHandler());
|
||||
|
||||
self::$object = new archiveTester($task->getID(), $logger);
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
|
Reference in New Issue
Block a user