From c65fc6abec0bf24f21cdf567a2701d8c9ae1bfba Mon Sep 17 00:00:00 2001 From: Aztech Date: Wed, 8 Jul 2015 09:58:20 +0200 Subject: [PATCH] Fix incorrect call to read/save version --- lib/classes/base.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/base.php b/lib/classes/base.php index c09369c276..b00a6c838e 100644 --- a/lib/classes/base.php +++ b/lib/classes/base.php @@ -208,7 +208,7 @@ abstract class base implements cache_cacheableInterface public function get_version() { if (! $this->version) { - $this->version = $this->versionRepository->getVersion($this); + $this->version = $this->versionRepository->getVersion(); } return $this->version; @@ -216,8 +216,8 @@ abstract class base implements cache_cacheableInterface protected function setVersion(PhraseaVersion $version) { - try { - return $this->versionRepository->saveVersion($this, $version); + try { + return $this->versionRepository->saveVersion($version); } catch (\Exception $e) { throw new Exception('Unable to set the database version : ' . $e->getMessage()); }