From 06897b568366f5655c84c7aac0fcb0b8308ce149 Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Sat, 18 Nov 2023 23:22:59 +0000 Subject: [PATCH] Ops! --- classes/output/external.php | 2 +- lang/en/theme_foundation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/output/external.php b/classes/output/external.php index 87d7ac6..1bc40c1 100644 --- a/classes/output/external.php +++ b/classes/output/external.php @@ -168,7 +168,7 @@ public static function set_user_preferences($preferences) { try { $user = core_user::get_user($USER->id, '*', MUST_EXIST); core_user::require_active_user($user); - $userscache[$userid] = $user; + $userscache[$user->id] = $user; } catch (Exception $e) { $warnings[] = [ 'item' => 'user', diff --git a/lang/en/theme_foundation.php b/lang/en/theme_foundation.php index 12be52c..029a4ad 100644 --- a/lang/en/theme_foundation.php +++ b/lang/en/theme_foundation.php @@ -417,7 +417,7 @@ $string['versionstable'] = 'Stable version - Could contain bugs. Check on a test server before installing on your production server.'; // Privacy. -$string['privacynote'] = 'Note: The Foundation theme stores has settings that pertain to its configuration. Specific user settings are described in the \'Plugin privacy registry\'. For the other settings, it is your responsibilty to ensure that no user data is entered in any of the free text fields. Setting a setting will result in that action being logged within the core Moodle logging system against the user whom changed it, this is outside of the themes control, please see the core logging system for privacy compliance for this. When uploading images, you should avoid uploading images with embedded location data (EXIF GPS) included or other such personal data. It would be possible to extract any location / personal data from the images. Please examine the code carefully to be sure that it complies with your interpretation of your privacy laws. I am not a lawyer and my analysis is based on my interpretation. If you have any doubt then remove the theme forthwith.'; +$string['privacynote'] = 'Note: The Foundation theme stores has settings that pertain to its configuration. Specific user settings are described in the \'Plugin privacy registry\'. For the other settings, it is your responsibility to ensure that no user data is entered in any of the free text fields. Setting a setting will result in that action being logged within the core Moodle logging system against the user whom changed it, this is outside of the themes control, please see the core logging system for privacy compliance for this. When uploading images, you should avoid uploading images with embedded location data (EXIF GPS) included or other such personal data. It would be possible to extract any location / personal data from the images. Please examine the code carefully to be sure that it complies with your interpretation of your privacy laws. I am not a lawyer and my analysis is based on my interpretation. If you have any doubt then remove the theme forthwith.'; $string['privacy:metadata:preference:collapseblock'] = 'The state of the blocks on a page.'; $string['privacy:request:preference:collapseblock'] = 'The user preference "{$a->name}" for block id "{$a->blockid}" has the value "{$a->value}" which represents "{$a->decoded}" for the state of the block.'; $string['privacy:metadata:preference:drawerclosed'] = 'The state of the drawer.';