Skip to content
Extraits de code Groupes Projets
Valider aa2d2e46 rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Do not execute updates that are from newer versions than current version....

Do not execute updates that are from newer versions than current version. otherwise 0.6.3 update was executing in the current rc1 version

git-svn-id: http://dev.piwik.org/svn/trunk@2349 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent e1e87c91
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -203,7 +203,10 @@ class Piwik_Updater
foreach( $files as $file)
{
$fileVersion = basename($file, '.php');
if(version_compare($currentVersion, $fileVersion) == -1)
if( // if the update is from a newer version
version_compare($currentVersion, $fileVersion) == -1
// but we don't execute updates from non existing future releases
&& version_compare($fileVersion, $newVersion) == -1)
{
$componentsWithUpdateFile[$name][$file] = $fileVersion;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter