diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-22 09:32:54 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-01 13:57:08 +0200 |
commit | c23c05d4f6b1795bc6c115f40ef7bda9e67fd6e9 (patch) | |
tree | 7fc920691156b58256ce24086e18696a5cf81e87 /apps/files_versions/lib | |
parent | 231bb47ae614eae87691327b1c5b639a105bf4bd (diff) | |
download | nextcloud-server-c23c05d4f6b1795bc6c115f40ef7bda9e67fd6e9.tar.gz nextcloud-server-c23c05d4f6b1795bc6c115f40ef7bda9e67fd6e9.zip |
Fix versions app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r-- | apps/files_versions/lib/Storage.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php index ff73b81f574..8ccd85420d2 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(\OC::$server->getConfig()->getSystemValue('files_versions', Storage::DEFAULTENABLED) === 'true') { + if(\OC::$server->getConfig()->getSystemValue('files_versions', Storage::DEFAULTENABLED)) { // 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(\OC::$server->getConfig()->getSystemValue('files_versions', Storage::DEFAULTENABLED) === 'true') { + if(\OC::$server->getConfig()->getSystemValue('files_versions', Storage::DEFAULTENABLED)) { // add expected leading slash $file = '/' . ltrim($file, '/'); list($uid, $filename) = self::getUidAndFilename($file); @@ -701,7 +701,7 @@ class Storage { $config = \OC::$server->getConfig(); $expiration = self::getExpiration(); - if($config->getSystemValue('files_versions', Storage::DEFAULTENABLED) === 'true' && $expiration->isEnabled()) { + if($config->getSystemValue('files_versions', Storage::DEFAULTENABLED) && $expiration->isEnabled()) { // get available disk space for user $user = \OC::$server->getUserManager()->get($uid); if (is_null($user)) { |