diff options
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-x | lib/private/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index be4aac69564..f46f5983d21 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -208,7 +208,10 @@ class OC_Util { * @param string $userDirectory */ public static function copySkeleton($userDirectory) { - OC_Util::copyr(\OC::$SERVERROOT.'/core/skeleton' , $userDirectory); + $skeletonDirectory = OC_Config::getValue('skeletondirectory', \OC::$SERVERROOT.'/core/skeleton'); + if (!empty($skeletonDirectory)) { + OC_Util::copyr($skeletonDirectory , $userDirectory); + } } /** |