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(), ':name' => $this->get_name(),
); );
$this->width = $media->getWidth();
$this->height = $media->getHeight();
unset($media);
$stmt = $this->record->get_databox()->get_connection()->prepare($sql); $stmt = $this->record->get_databox()->get_connection()->prepare($sql);
$stmt->execute($params); $stmt->execute($params);
$stmt->closeCursor(); $stmt->closeCursor();
$this->width = $media->getWidth();
$this->height = $media->getHeight();
$this->delete_data_from_cache(); $this->delete_data_from_cache();
unset($media);
return $this; return $this;
} }

View File

@@ -718,7 +718,9 @@ abstract class task_abstract
$tid = $appbox->get_connection()->lastInsertId(); $tid = $appbox->get_connection()->lastInsertId();
return new $class_name($tid); $core = \bootstrap::getCore();
return new $class_name($tid, $core['monolog']);
} }
public function getUsage() public function getUsage()

View File

@@ -15,7 +15,10 @@ class task_period_archiveTest extends \PhraseanetPHPUnitAbstract
$appbox = \appbox::get_instance(\bootstrap::getCore('test')); $appbox = \appbox::get_instance(\bootstrap::getCore('test'));
$task = \task_period_archive::create($appbox, 'task_period_archive'); $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() public static function tearDownAfterClass()