You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/private/Config.php
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,23 @@
16
16
*/
17
17
class Config {
18
18
publicconstENV_PREFIX = 'NC_';
19
+
publicconstCONF_WARNING = "
20
+
/*
21
+
* WARNING
22
+
*
23
+
* This file gets modified by automatic processes and all lines that are not
24
+
* active code (ie. comments) are lost during that process.
25
+
*
26
+
* If you want to document things with comments or use constants add your settings
27
+
* in a '<NAME>.config.php' file which will be included and rendered into this file.
28
+
*
29
+
* Example:
30
+
* <?php
31
+
* \$CONFIG = [];
32
+
*
33
+
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
34
+
*/
35
+
";
19
36
20
37
protectedarray$cache = [];
21
38
protectedarray$envCache = [];
@@ -268,25 +285,9 @@ private function writeData(): void {
268
285
}
269
286
270
287
// Create a php file ...
271
-
$content = "<?php
272
-
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
* This file gets modified by automatic processes and all lines that are not
106
-
* active code (ie. comments) are lost during that process.
107
-
*
108
-
* If you want to document things with comments or use constants add your settings
109
-
* in a '<NAME>.config.php' file which will be included and rendered into this file.
110
-
*
111
-
* Example:
112
-
* <?php
113
-
* \$CONFIG = [];
114
-
*
115
-
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
@@ -127,25 +110,8 @@ public function testSetValue(): void {
127
110
128
111
$content = file_get_contents($this->configFile);
129
112
130
-
$expected = "<?php
131
-
132
-
/*
133
-
* WARNING
134
-
*
135
-
* This file gets modified by automatic processes and all lines that are not
136
-
* active code (ie. comments) are lost during that process.
137
-
*
138
-
* If you want to document things with comments or use constants add your settings
139
-
* in a '<NAME>.config.php' file which will be included and rendered into this file.
140
-
*
141
-
* Example:
142
-
* <?php
143
-
* \$CONFIG = [];
144
-
*
145
-
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
* This file gets modified by automatic processes and all lines that are not
186
-
* active code (ie. comments) are lost during that process.
187
-
*
188
-
* If you want to document things with comments or use constants add your settings
189
-
* in a '<NAME>.config.php' file which will be included and rendered into this file.
190
-
*
191
-
* Example:
192
-
* <?php
193
-
* \$CONFIG = [];
194
-
*
195
-
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
* This file gets modified by automatic processes and all lines that are not
216
-
* active code (ie. comments) are lost during that process.
217
-
*
218
-
* If you want to document things with comments or use constants add your settings
219
-
* in a '<NAME>.config.php' file which will be included and rendered into this file.
220
-
*
221
-
* Example:
222
-
* <?php
223
-
* \$CONFIG = [];
224
-
*
225
-
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
* This file gets modified by automatic processes and all lines that are not
255
-
* active code (ie. comments) are lost during that process.
256
-
*
257
-
* If you want to document things with comments or use constants add your settings
258
-
* in a '<NAME>.config.php' file which will be included and rendered into this file.
259
-
*
260
-
* Example:
261
-
* <?php
262
-
* \$CONFIG = [];
263
-
*
264
-
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
0 commit comments