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

Meilleure gestion des versions

parent 908a0ef5
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,14 @@ class OseAdmin ...@@ -48,6 +48,14 @@ class OseAdmin
public function init()
{
$this->version = $this->currentVersion();
$this->oldVersion = $this->version;
}
public function majUnicaenSymLinks(): bool public function majUnicaenSymLinks(): bool
{ {
$oseDir = $this->getOseDir(); $oseDir = $this->getOseDir();
......
...@@ -10,8 +10,7 @@ spl_autoload_register(function ($class) { ...@@ -10,8 +10,7 @@ spl_autoload_register(function ($class) {
$c = new Console(); $c = new Console();
$oa = new OseAdmin($c); $oa = new OseAdmin($c);
$oa->version = $oa->currentVersion(); $oa->init();
$oa->oldVersion = $oa->version;
$c->printMainTitle("OSE", 15); $c->printMainTitle("OSE", 15);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment