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

Correction du bug empêchant de lancer les scripts de migration

parent fdf844da
......@@ -143,7 +143,7 @@ class OseAdmin
return 'inconnue';
}
return file_get_contents($vf);
return trim(file_get_contents($vf));
}
......@@ -178,13 +178,13 @@ class OseAdmin
{
$version = strtolower($version);
if (false !== ($p = strpos($version, 'alpha'))) {
$version = trim(substr($version, 0, $p));
$version = substr($version, 0, $p);
}
if (false !== ($p = strpos($version, 'beta'))) {
$version = trim(substr($version, 0, $p));
$version = substr($version, 0, $p);
}
return $version;
return trim($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