File tree Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 227
227
$ setting ->set_force_ltr (true );
228
228
$ temp ->add ($ setting );
229
229
230
+ // See {@link https://gdpr-info.eu/art-8-gdpr/}.
231
+ $ ageofdigitalconsentmap = implode (PHP_EOL , [
232
+ '*, 16 ' ,
233
+ 'AT, 14 ' ,
234
+ 'ES, 14 ' ,
235
+ 'SI, 14 ' ,
236
+ 'US, 13 '
237
+ ]);
230
238
$ setting = new admin_setting_agedigitalconsentmap ('agedigitalconsentmap ' ,
231
239
new lang_string ('ageofdigitalconsentmap ' , 'admin ' ),
232
240
new lang_string ('ageofdigitalconsentmap_desc ' , 'admin ' ),
233
- // See {@link https://gdpr-info.eu/art-8-gdpr/}.
234
- implode (PHP_EOL , [
235
- '*, 16 ' ,
236
- 'AT, 14 ' ,
237
- 'CZ, 13 ' ,
238
- 'DE, 14 ' ,
239
- 'DK, 13 ' ,
240
- 'ES, 13 ' ,
241
- 'FI, 15 ' ,
242
- 'GB, 13 ' ,
243
- 'HU, 14 ' ,
244
- 'IE, 13 ' ,
245
- 'LT, 16 ' ,
246
- 'LU, 16 ' ,
247
- 'NL, 16 ' ,
248
- 'PL, 13 ' ,
249
- 'SE, 13 ' ,
250
- ]),
241
+ $ ageofdigitalconsentmap ,
251
242
PARAM_RAW
252
243
);
253
244
$ temp ->add ($ setting );
Original file line number Diff line number Diff line change @@ -2835,5 +2835,20 @@ function xmldb_main_upgrade($oldversion) {
2835
2835
upgrade_main_savepoint (true , 2017111301.08 );
2836
2836
}
2837
2837
2838
+ if ($ oldversion < 2017111302.12 ) {
2839
+ // Update default digital age consent map according to the current legislation on each country.
2840
+ $ ageofdigitalconsentmap = implode (PHP_EOL , [
2841
+ '*, 16 ' ,
2842
+ 'AT, 14 ' ,
2843
+ 'ES, 14 ' ,
2844
+ 'SI, 14 ' ,
2845
+ 'US, 13 '
2846
+ ]);
2847
+ set_config ('agedigitalconsentmap ' , $ ageofdigitalconsentmap );
2848
+
2849
+ // Main savepoint reached.
2850
+ upgrade_main_savepoint (true , 2017111302.12 );
2851
+ }
2852
+
2838
2853
return true ;
2839
2854
}
Original file line number Diff line number Diff line change 29
29
30
30
defined ('MOODLE_INTERNAL ' ) || die ();
31
31
32
- $ version = 2017111302.11 ; // 20171113 = branching date YYYYMMDD - do not modify!
32
+ $ version = 2017111302.12 ; // 20171113 = branching date YYYYMMDD - do not modify!
33
33
// RR = release increments - 00 in DEV branches.
34
34
// .XX = incremental changes.
35
35
You can’t perform that action at this time.
0 commit comments