diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-02-18 18:10:22 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-02-18 18:10:22 +0100 |
commit | 1e84d6b14b56a4df39550b590051c2bfff900a9c (patch) | |
tree | 02a9bae807f51544db88868918ae347c78b2fc05 /apps/files_external | |
parent | a573fe7d769f5eea26f52b818eee11779090bb50 (diff) | |
parent | 181bbd4325ea2b21ff8ecca93eb5ac839d6a739d (diff) | |
download | nextcloud-server-1e84d6b14b56a4df39550b590051c2bfff900a9c.tar.gz nextcloud-server-1e84d6b14b56a4df39550b590051c2bfff900a9c.zip |
Merge pull request #7190 from owncloud/appconfig-legacy-apps
Remove usage of legacy OC_Appconfig
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/google.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index 426caf008ec..1ab89e5e8c6 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -524,6 +524,7 @@ class Google extends \OC\Files\Storage\Common { } public function hasUpdated($path, $time) { + $appConfig = \OC::$server->getAppConfig(); if ($this->is_file($path)) { return parent::hasUpdated($path, $time); } else { @@ -533,7 +534,7 @@ class Google extends \OC\Files\Storage\Common { if ($folder) { $result = false; $folderId = $folder->getId(); - $startChangeId = \OC_Appconfig::getValue('files_external', $this->getId().'cId'); + $startChangeId = $appConfig->getValue('files_external', $this->getId().'cId'); $params = array( 'includeDeleted' => true, 'includeSubscribed' => true, @@ -578,7 +579,7 @@ class Google extends \OC\Files\Storage\Common { break; } } - \OC_Appconfig::setValue('files_external', $this->getId().'cId', $largestChangeId); + $appConfig->setValue('files_external', $this->getId().'cId', $largestChangeId); return $result; } } |