diff --git a/lib/classes/appbox.php b/lib/classes/appbox.php index 17cf7ac793..b8ade4ce38 100644 --- a/lib/classes/appbox.php +++ b/lib/classes/appbox.php @@ -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']); } diff --git a/lib/classes/base.php b/lib/classes/base.php index 618e8d1325..4ffe971e60 100644 --- a/lib/classes/base.php +++ b/lib/classes/base.php @@ -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); } }