diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2009-02-26 10:40:09 +0300 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2009-02-26 10:40:09 +0300 |
commit | 9cf7540ecaa37138b055693287dbe97e85f07f66 (patch) | |
tree | 024e403fe3c25f202feb8cae1988a1ed98059253 /core/Updater.php | |
parent | 19ea25fc9c4d3903d46fab6e08a58d14b7156b1c (diff) |
- adding one click update mechanism. when a new Piwik version is out, the UI will link to a page that asks for either: automatic one click upgrade, or manual download.
if automatic one click update is selected, Piwik will download piwik.org/last.zip, unzip, does very basic check on unzipped file, backup config file, copy all files over existing files, and shows feedback to user.
there are several point of failures and the code should be tested on normal linux environment, I believe for example we can make it more robust by trying to chmod the files in 0644 if copy() of the new files over the existing ones fails.
this mechanism should help driving piwik update rates from existing users, minimising risks of security holes, and maximising usage of latest piwik features.
git-svn-id: http://dev.piwik.org/svn/trunk@918 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/Updater.php b/core/Updater.php index 5f14802d9c..bfc97a3602 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -157,9 +157,7 @@ class Piwik_Updater { $currentVersion = '0.0.1'; } - $this->recordComponentSuccessfullyUpdated($name, $currentVersion); - } $versionCompare = version_compare($currentVersion, $version); |