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 230
230
$ setting ->set_force_ltr (true );
231
231
$ temp ->add ($ setting );
232
232
233
+ // See {@link https://gdpr-info.eu/art-8-gdpr/}.
234
+ $ ageofdigitalconsentmap = implode (PHP_EOL , [
235
+ '*, 16 ' ,
236
+ 'AT, 14 ' ,
237
+ 'ES, 14 ' ,
238
+ 'SI, 14 ' ,
239
+ 'US, 13 '
240
+ ]);
233
241
$ setting = new admin_setting_agedigitalconsentmap ('agedigitalconsentmap ' ,
234
242
new lang_string ('ageofdigitalconsentmap ' , 'admin ' ),
235
243
new lang_string ('ageofdigitalconsentmap_desc ' , 'admin ' ),
236
- // See {@link https://gdpr-info.eu/art-8-gdpr/}.
237
- implode (PHP_EOL , [
238
- '*, 16 ' ,
239
- 'AT, 14 ' ,
240
- 'CZ, 13 ' ,
241
- 'DE, 14 ' ,
242
- 'DK, 13 ' ,
243
- 'ES, 13 ' ,
244
- 'FI, 15 ' ,
245
- 'GB, 13 ' ,
246
- 'HU, 14 ' ,
247
- 'IE, 13 ' ,
248
- 'LT, 16 ' ,
249
- 'LU, 16 ' ,
250
- 'NL, 16 ' ,
251
- 'PL, 13 ' ,
252
- 'SE, 13 ' ,
253
- ]),
244
+ $ ageofdigitalconsentmap ,
254
245
PARAM_RAW
255
246
);
256
247
$ temp ->add ($ setting );
Original file line number Diff line number Diff line change @@ -2985,5 +2985,20 @@ function xmldb_main_upgrade($oldversion) {
2985
2985
upgrade_main_savepoint (true , 2017051504.08 );
2986
2986
}
2987
2987
2988
+ if ($ oldversion < 2017051505.11 ) {
2989
+ // Update default digital age consent map according to the current legislation on each country.
2990
+ $ ageofdigitalconsentmap = implode (PHP_EOL , [
2991
+ '*, 16 ' ,
2992
+ 'AT, 14 ' ,
2993
+ 'ES, 14 ' ,
2994
+ 'SI, 14 ' ,
2995
+ 'US, 13 '
2996
+ ]);
2997
+ set_config ('agedigitalconsentmap ' , $ ageofdigitalconsentmap );
2998
+
2999
+ // Main savepoint reached.
3000
+ upgrade_main_savepoint (true , 2017051505.11 );
3001
+ }
3002
+
2988
3003
return true ;
2989
3004
}
Original file line number Diff line number Diff line change 29
29
30
30
defined ('MOODLE_INTERNAL ' ) || die ();
31
31
32
- $ version = 2017051505.10 ; // 20170515 = branching date YYYYMMDD - do not modify!
32
+ $ version = 2017051505.11 ; // 20170515 = 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