Fix build

This commit is contained in:
Romain Neutron
2012-05-24 15:57:34 +02:00
parent 35a91bec8e
commit dc9d0c5e55
3 changed files with 13 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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()