Skip to content

Commit 11b8538

Browse files
Update lib/private/Config.php
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Keeper-of-the-Keys <es-github@rosenberg.org.il>
1 parent 3337750 commit 11b8538

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

lib/private/Config.php

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -269,20 +269,24 @@ private function writeData(): void {
269269

270270
// Create a php file ...
271271
$content = "<?php\n";
272-
$content .= '##### WARNING #####\n';
273-
$content .= '# This file gets modified by automatic processes and all lines that are not\n';
274-
$content .= '# active code (ie. comments) are lost during that process.\n';
275-
$content .= '#\n';
276-
$content .= '# If you want to document things with comments or use constants add your settings\n';
277-
$content .= '# in a "<NAME>.config.php" file which will be included and rendered into this file.\n';
278-
$content .= '#\n';
279-
$content .= '# Example:\n';
280-
$content .= '#\t<?php\n';
281-
$content .= '#\t$CONFIG = [];\n';
282-
$content .= '#\n';
283-
$content .= '# See also: ';
284-
$content .= '# https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files';
285-
$content .= '#####\n\n';
272+
$content .= "
273+
/*
274+
* WARNING
275+
*
276+
* This file gets modified by automatic processes and all lines that are not
277+
* active code (ie. comments) are lost during that process.
278+
*
279+
* If you want to document things with comments or use constants add your settings
280+
* in a '<NAME>.config.php' file which will be included and rendered into this file.
281+
*
282+
* Example:
283+
* <?php
284+
* \$CONFIG = [];
285+
*
286+
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
287+
*/
288+
289+
";
286290
$content .= '$CONFIG = ';
287291
$content .= var_export(self::trustSystemConfig($this->cache), true);
288292
$content .= ";\n";

0 commit comments

Comments
 (0)