Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php7
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;