Skip to content

Commit

Permalink
Wrong away around.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Oct 23, 2023
1 parent 2ad32ab commit a7537ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function export_user_preferences(int $userid) {
if (preg_match('/(?<=block)\d*(?=hidden)/', $name, $matches)) {
if (!empty($matches[0])) {
$blockid = $matches[0];
$decoded = ($value) ? get_string('privacy:closed', 'theme_adaptable') : get_string('privacy:open', 'theme_adaptable');
$decoded = ($value) ? get_string('privacy:open', 'theme_adaptable') : get_string('privacy:closed', 'theme_adaptable');

writer::export_user_preference(
'theme_adaptable',
Expand All @@ -87,7 +87,7 @@ public static function export_user_preferences(int $userid) {
);
}
} else if ($name == 'drawer-open-index') {
$decoded = ($value) ? get_string('privacy:closed', 'theme_adaptable') : get_string('privacy:open', 'theme_adaptable');
$decoded = ($value) ? get_string('privacy:open', 'theme_adaptable') : get_string('privacy:closed', 'theme_adaptable');

writer::export_user_preference(
'theme_adaptable',
Expand All @@ -100,7 +100,7 @@ public static function export_user_preferences(int $userid) {
])
);
} else if ($name == 'drawer-open-block') {
$decoded = ($value) ? get_string('privacy:closed', 'theme_adaptable') : get_string('privacy:open', 'theme_adaptable');
$decoded = ($value) ? get_string('privacy:open', 'theme_adaptable') : get_string('privacy:closed', 'theme_adaptable');

writer::export_user_preference(
'theme_adaptable',
Expand All @@ -113,7 +113,7 @@ public static function export_user_preferences(int $userid) {
])
);
} else if ($name == 'theme_adaptable_zoom') {
$decoded = ($value) ? get_string('privacy:closed', 'theme_adaptable') : get_string('privacy:open', 'theme_adaptable');
$decoded = ($value) ? get_string('privacy:open', 'theme_adaptable') : get_string('privacy:closed', 'theme_adaptable');

writer::export_user_preference(
'theme_adaptable',
Expand Down
2 changes: 1 addition & 1 deletion lang/en/theme_adaptable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@
$string['putpropertiesignored'] = 'Ignored:';

// Privacy.
$string['privacynote'] = 'Note: The Adaptable theme 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 Adaptable theme 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:closed'] = 'Closed';
$string['privacy:open'] = 'Open';
$string['privacy:nofull'] = 'Not full';
Expand Down

0 comments on commit a7537ad

Please sign in to comment.