diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-02-17 21:59:43 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-02-17 22:10:03 +0100 |
commit | 45cff7b7378ff351158d9d93b879dcfc156171aa (patch) | |
tree | 9909d81cb7d776bf332e5abd3137138bae82b8ff /lib/updater.php | |
parent | bd7227bb934c6d618c46eb818c8ce0f6ecb64e29 (diff) | |
download | nextcloud-server-45cff7b7378ff351158d9d93b879dcfc156171aa.tar.gz nextcloud-server-45cff7b7378ff351158d9d93b879dcfc156171aa.zip |
Move storing "last updated at" time to the app config
This way the config.php file is not changed every time you go to the
personal page. Step to make it possible to have a read-only config.php
most of the time
Diffstat (limited to 'lib/updater.php')
-rw-r--r-- | lib/updater.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/updater.php b/lib/updater.php index cc4a4602539..57623797ae5 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -29,12 +29,12 @@ class OC_Updater{ * Check if a new version is available */ public static function check(){ - OC_Config::setValue('lastupdatedat',microtime(true)); + OC_Appconfig::setValue('core', 'lastupdatedat',microtime(true)); $updaterurl='http://apps.owncloud.com/updater.php'; $version=OC_Util::getVersion(); - $version['installed']=OC_Config::getValue( "installedat"); - $version['updated']=OC_Config::getValue( "lastupdatedat"); + $version['installed']=OC_Config::getValue('installedat'); + $version['updated']=OC_Appconfig::getValue('core', 'lastupdatedat', OC_Config::getValue( 'lastupdatedat')); $version['updatechannel']='stable'; $versionstring=implode('x',$version); |