|
|
|
|
@ -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); |
|
|
|
|
|