[Pkg-owncloud-commits] [owncloud] 19/273: only use one config option 'objectstore' for root and home storage configuration

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 03:12:53 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 4e65889f54836e8f01af0b1b59879a8e6b739f27
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Fri Jun 13 15:49:40 2014 +0200

    only use one config option 'objectstore' for root and home storage configuration
---
 lib/private/files/filesystem.php |  4 ++--
 lib/private/util.php             | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index f5a7060..71d70bb 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -325,14 +325,14 @@ class Filesystem {
 		$userObject = \OC_User::getManager()->get($user);
 
 		if (!is_null($userObject)) {
-			$homeStorage = \OC_Config::getValue( 'home_storage', array(
+			$homeStorage = \OC_Config::getValue( 'objectstore', array(
 				//default home storage configuration:
 				'class' => '\OC\Files\Storage\Home',
 				'arguments' => array()
 			));
 			// sanity checks
 			if (empty($homeStorage['class'])) {
-				\OCP\Util::writeLog('files', 'No class given for home_storage', \OCP\Util::ERROR);
+				\OCP\Util::writeLog('files', 'No class given for objectstore', \OCP\Util::ERROR);
 			}
 			if (!isset($homeStorage['arguments'])) {
 				$homeStorage['arguments'] = array();
diff --git a/lib/private/util.php b/lib/private/util.php
index b4772f1..f2ecdcb 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -73,9 +73,9 @@ class OC_Util {
 		}
 
 		//check if we are using an object storage
-		$root_storage = OC_Config::getValue( 'root_storage' );
-		if ( isset( $root_storage ) ) {
-			self::initObjectStoreRootFS($root_storage);
+		$objectStore = OC_Config::getValue( 'objectstore' );
+		if ( isset( $objectStore ) ) {
+			self::initObjectStoreRootFS($objectStore);
 		} else {
 			self::initLocalStorageRootFS();
 		}
@@ -108,10 +108,8 @@ class OC_Util {
 				return $storage;
 			});
 
-			$userDir = '/'.$user.'/files';
-
 			// copy skeleton for local storage only
-			if ( ! isset( $root_storage ) ) {
+			if ( ! isset( $objectStore ) ) {
 				$userRoot = OC_User::getHome($user);
 				$userDirectory = $userRoot . '/files';
 				if( !is_dir( $userDirectory )) {
@@ -120,6 +118,8 @@ class OC_Util {
 				}
 			}
 
+			$userDir = '/'.$user.'/files';
+
 			//jail the user into his "home" directory
 			\OC\Files\Filesystem::init($user, $userDir);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list