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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-18 00:59:43 +0400
committerBart Visscher <bartv@thisnet.nl>2012-02-18 01:10:03 +0400
commit45cff7b7378ff351158d9d93b879dcfc156171aa (patch)
tree9909d81cb7d776bf332e5abd3137138bae82b8ff /lib/updater.php
parentbd7227bb934c6d618c46eb818c8ce0f6ecb64e29 (diff)
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.php6
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);