mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Fix incorrect call to read/save version
This commit is contained in:
@@ -208,7 +208,7 @@ abstract class base implements cache_cacheableInterface
|
|||||||
public function get_version()
|
public function get_version()
|
||||||
{
|
{
|
||||||
if (! $this->version) {
|
if (! $this->version) {
|
||||||
$this->version = $this->versionRepository->getVersion($this);
|
$this->version = $this->versionRepository->getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->version;
|
return $this->version;
|
||||||
@@ -217,7 +217,7 @@ abstract class base implements cache_cacheableInterface
|
|||||||
protected function setVersion(PhraseaVersion $version)
|
protected function setVersion(PhraseaVersion $version)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return $this->versionRepository->saveVersion($this, $version);
|
return $this->versionRepository->saveVersion($version);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new Exception('Unable to set the database version : ' . $e->getMessage());
|
throw new Exception('Unable to set the database version : ' . $e->getMessage());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user