diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-16 16:02:30 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-03 11:11:58 +0200 |
commit | 3e97ca3b9637a44ffd366838164461bda65e889f (patch) | |
tree | 08a3dc169eea3e0eb516051c77d6aa31bd66748c /lib/private/util.php | |
parent | f70791653cefc40f640e48dcad489237b750d85c (diff) | |
download | nextcloud-server-3e97ca3b9637a44ffd366838164461bda65e889f.tar.gz nextcloud-server-3e97ca3b9637a44ffd366838164461bda65e889f.zip |
Add getUserFolder to IRootFolder
* untangle DI of user specific folders
* allows to autodetect the dependency
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 9c78ad3ad1c..ab2d4a221d7 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -267,17 +267,17 @@ class OC_Util { /** * copies the skeleton to the users /files * - * @param \OC\User\User $user + * @param String $userId * @param \OCP\Files\Folder $userDirectory */ - public static function copySkeleton(\OC\User\User $user, \OCP\Files\Folder $userDirectory) { + public static function copySkeleton($userId, \OCP\Files\Folder $userDirectory) { $skeletonDirectory = \OCP\Config::getSystemValue('skeletondirectory', \OC::$SERVERROOT . '/core/skeleton'); if (!empty($skeletonDirectory)) { \OCP\Util::writeLog( 'files_skeleton', - 'copying skeleton for '.$user->getUID().' from '.$skeletonDirectory.' to '.$userDirectory->getFullPath('/'), + 'copying skeleton for '.$userId.' from '.$skeletonDirectory.' to '.$userDirectory->getFullPath('/'), \OCP\Util::DEBUG ); self::copyr($skeletonDirectory, $userDirectory); |