Skip to content
Snippets Groups Projects
Commit c84a9ae6 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction de bug lié au refactoring...

parent 58bea091
No related branches found
No related tags found
No related merge requests found
...@@ -128,9 +128,9 @@ class OseAdmin ...@@ -128,9 +128,9 @@ class OseAdmin
public function currentVersion(string $osedir): string public function currentVersion(): string
{ {
$vf = $this->getVersionFile($osedir); $vf = $this->getOseDir() . 'VERSION';
if (!file_exists($vf)) { if (!file_exists($vf)) {
return 'inconnue'; return 'inconnue';
} }
...@@ -142,16 +142,8 @@ class OseAdmin ...@@ -142,16 +142,8 @@ class OseAdmin
public function writeVersion(string $version) public function writeVersion(string $version)
{ {
$vf = $this->getVersionFile();
$this->version = $version; $this->version = $version;
file_put_contents($vf, $version); file_put_contents($this->getOseDir() . 'VERSION', $version);
}
private function getVersionFile(): string
{
return $this->getOseDir() . 'VERSION';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment