diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-09 02:14:12 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-09 02:14:12 +0400 |
commit | 20cdfcf27f824fcdf8795ff39ea05dc597768b03 (patch) | |
tree | 4fb0f7e29ddcf2149b75fcd6fc120ee826809e32 /core/Updater.php | |
parent | bbb8642e7c52d2ee9d2216fd6a0d465b0b5546d8 (diff) |
Refs #4204
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Updater.php b/core/Updater.php index ba5edbe035..0bbc6280ae 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -261,8 +261,9 @@ class Updater // This should not happen $currentVersion = Version::VERSION; } else { - // - $currentVersion = '0.0.1'; + // When plugins have been installed since Piwik 2.0 this should not happen + // We "fix" the data for any plugin that may have been ported from Piwik 1.x + $currentVersion = $version; } self::recordComponentSuccessfullyUpdated($name, $currentVersion); } @@ -274,7 +275,7 @@ class Updater self::INDEX_NEW_VERSION => $version ); } else if ($versionCompare == 1) { - // the version in the DB is newest.. we choose to ignore (for the time being) + // the version in the DB is newest.. we choose to ignore } } return $componentsToUpdate; |