aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPawel Boguslawski <pawel.boguslawski@ib.pl>2025-01-16 14:47:14 +0100
committerAndy Scherzinger <info@andy-scherzinger.de>2025-01-27 16:08:53 +0100
commitc7bcfbf8649c01af19bf516b46b16d1fcf0eba5d (patch)
tree9e474030a4e6d924d608ab8450983914bb89b9c4 /config
parentb70654aeed6bec4befd65641717a6d167d6ddbd0 (diff)
downloadnextcloud-server-c7bcfbf8649c01af19bf516b46b16d1fcf0eba5d.tar.gz
nextcloud-server-c7bcfbf8649c01af19bf516b46b16d1fcf0eba5d.zip
fix: Hide "Create templates folder" option if templates are disabled in configuration
When both `skeletondirectory` and `templatedirectory` are set to empty strings in configuration, templates folder creation should be disabled and no Create templates folder option should be present in new folder menu. Related: https://github.com/nextcloud/server/issues/39266 Related: https://github.com/nextcloud/server/issues/46455 Author-Change-Id: IB#1156403 Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl> Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index b0b0f21853b..f30bd92adbc 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -288,8 +288,9 @@ $CONFIG = [
/**
* The directory where the skeleton files are located. These files will be
- * copied to the data directory of new users. Leave empty to not copy any
- * skeleton files.
+ * copied to the data directory of new users. Set empty string to not copy any
+ * skeleton files. If unset and templatedirectory is empty string, shipped
+ * templates will be used to create a template directory for the user.
* ``{lang}`` can be used as a placeholder for the language of the user.
* If the directory does not exist, it falls back to non dialect (from ``de_DE``
* to ``de``). If that does not exist either, it falls back to ``default``
@@ -298,18 +299,16 @@ $CONFIG = [
*/
'skeletondirectory' => '/path/to/nextcloud/core/skeleton',
-
/**
* The directory where the template files are located. These files will be
- * copied to the template directory of new users. Leave empty to not copy any
+ * copied to the template directory of new users. Set empty string to not copy any
* template files.
* ``{lang}`` can be used as a placeholder for the language of the user.
* If the directory does not exist, it falls back to non dialect (from ``de_DE``
* to ``de``). If that does not exist either, it falls back to ``default``
*
- * If this is not set creating a template directory will only happen if no custom
- * ``skeletondirectory`` is defined, otherwise the shipped templates will be used
- * to create a template directory for the user.
+ * To disable creating a template directory, set both skeletondirectory and
+ * templatedirectory to empty strings.
*/
'templatedirectory' => '/path/to/nextcloud/templates',