diff options
author | Stefan Rado <owncloud@sradonia.net> | 2014-08-16 01:07:42 +0200 |
---|---|---|
committer | Stefan Rado <owncloud@sradonia.net> | 2014-08-16 01:07:42 +0200 |
commit | ccc46be740264f3374834ece24a11e804924c180 (patch) | |
tree | b8514dcff8173a24d9342a2abcd3b99a457736fc /lib | |
parent | c1272871a543dae6067b7fa2b5f3226f4cecbdc7 (diff) | |
download | nextcloud-server-ccc46be740264f3374834ece24a11e804924c180.tar.gz nextcloud-server-ccc46be740264f3374834ece24a11e804924c180.zip |
Make skeleton directory configurable.
Diffstat (limited to 'lib')
-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); + } } /** |