@ -159,11 +159,10 @@ class CoreListerVersions extends Command {
* @return string $version
*/
public static function trouverVersionInstallee() {
ob_start();
passthru('spip dl -i | awk -F "[-b ]+" \'/[0-9]+/{print $(NF-2)}\'');
$version_installee = ob_get_contents();
ob_end_clean();
if (lire_fichier('ecrire/inc_version.php', $inc)) {
preg_match('/\$spip_version_branche = \'(\d+.\d+.\d+)\';/', $inc, $matches);
return $version_installee;
return $matches[1];
}