mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Remove useless function argument apply_patches
This commit is contained in:
@@ -238,11 +238,11 @@ class appbox extends base
|
|||||||
|
|
||||||
protected function post_upgrade(Application $app)
|
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']);
|
$this->setVersion($app['phraseanet.version']);
|
||||||
|
|
||||||
foreach ($this->get_databoxes() as $databox) {
|
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']);
|
$databox->setVersion($app['phraseanet.version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -263,10 +263,10 @@ abstract class base implements cache_cacheableInterface
|
|||||||
return $this;
|
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);
|
$service = new DatabaseMaintenanceService($this->app, $this->connection);
|
||||||
|
|
||||||
return $service->applyPatches($this, $from, $to, $post_process, $app);
|
return $service->applyPatches($this, $from, $to, $post_process);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user