Remove useless function argument apply_patches

This commit is contained in:
Benoît Burnichon
2016-01-22 11:59:47 +01:00
parent f1a427a519
commit 0ccc5a49d4
2 changed files with 4 additions and 4 deletions

View File

@@ -238,11 +238,11 @@ class appbox extends base
protected function post_upgrade(Application $app)
{
$this->apply_patches($this->get_version(), $app['phraseanet.version']->getNumber(), true, $app);
$this->apply_patches($this->get_version(), $app['phraseanet.version']->getNumber(), true);
$this->setVersion($app['phraseanet.version']);
foreach ($this->get_databoxes() as $databox) {
$databox->apply_patches($databox->get_version(), $app['phraseanet.version']->getNumber(), true, $app);
$databox->apply_patches($databox->get_version(), $app['phraseanet.version']->getNumber(), true);
$databox->setVersion($app['phraseanet.version']);
}

View File

@@ -263,10 +263,10 @@ abstract class base implements cache_cacheableInterface
return $this;
}
public function apply_patches($from, $to, $post_process, Application $app)
public function apply_patches($from, $to, $post_process)
{
$service = new DatabaseMaintenanceService($this->app, $this->connection);
return $service->applyPatches($this, $from, $to, $post_process, $app);
return $service->applyPatches($this, $from, $to, $post_process);
}
}