mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +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()
|
||||
|
Reference in New Issue
Block a user