Commit c84a9ae6 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Correction de bug lié au refactoring...

parent 58bea091
......@@ -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)) {
return 'inconnue';
}
......@@ -142,16 +142,8 @@ class OseAdmin
public function writeVersion(string $version)
{
$vf = $this->getVersionFile();
$this->version = $version;
file_put_contents($vf, $version);
}
private function getVersionFile(): string
{
return $this->getOseDir() . 'VERSION';
file_put_contents($this->getOseDir() . 'VERSION', $version);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment