summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-13 16:28:49 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-13 16:28:49 +0100
commit181bbd4325ea2b21ff8ecca93eb5ac839d6a739d (patch)
tree18fdd4bfdbd2de538ebe996e7ddb580a07450994 /apps/files_external
parent4b84e3a7e8bf7dc0a8e62074803f97a81571ca22 (diff)
downloadnextcloud-server-181bbd4325ea2b21ff8ecca93eb5ac839d6a739d.tar.gz
nextcloud-server-181bbd4325ea2b21ff8ecca93eb5ac839d6a739d.zip
Remove usage of legacy OC_Appconfig
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/google.php5
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;
}
}