mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +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()
|
||||
{
|
||||
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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user