aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-31 10:54:40 +0200
committerGitHub <noreply@github.com>2017-07-31 10:54:40 +0200
commit7b2c08a31a102722c02f1546ecea9af378c9a3dd (patch)
tree1c573fd4aed275db6cc5eb357fc17c48097b6d55 /apps/files_versions
parent3c4ac6060a8be1865e4a98c97259bcbe16184d5e (diff)
parentc27498db7103aebac323c361007e0d8a2da16a34 (diff)
downloadnextcloud-server-7b2c08a31a102722c02f1546ecea9af378c9a3dd.tar.gz
nextcloud-server-7b2c08a31a102722c02f1546ecea9af378c9a3dd.zip
Merge pull request #5905 from nextcloud/ocp-config
Use IConfig instead of static OCP\Config
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/Storage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php
index 9aa9e6d5260..6e6b6aebb6d 100644
--- a/apps/files_versions/lib/Storage.php
+++ b/apps/files_versions/lib/Storage.php
@@ -161,7 +161,7 @@ class Storage {
* store a new version of a file.
*/
public static function store($filename) {
- if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') {
+ if(\OC::$server->getConfig()->getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') {
// if the file gets streamed we need to remove the .part extension
// to get the right target
@@ -320,7 +320,7 @@ class Storage {
*/
public static function rollback($file, $revision) {
- if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') {
+ if(\OC::$server->getConfig()->getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') {
// add expected leading slash
$file = '/' . ltrim($file, '/');
list($uid, $filename) = self::getUidAndFilename($file);