summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStefan Rado <owncloud@sradonia.net>2014-08-16 01:07:42 +0200
committerLukas Reschke <lukas@owncloud.com>2014-08-18 09:46:17 +0200
commitcac56279c2fdbeab3877c64f4d2b2370a402907b (patch)
tree49293e9da5a0befc2fe1de8ec25961f537be8f41 /lib
parent5e8733a9f6c8bde6c7320af53976c42059b9ec09 (diff)
downloadnextcloud-server-cac56279c2fdbeab3877c64f4d2b2370a402907b.tar.gz
nextcloud-server-cac56279c2fdbeab3877c64f4d2b2370a402907b.zip
Make skeleton directory configurable.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/private/util.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 896b076afa6..0be61870dac 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);
+ }
}
/**