From a282fc23ea73d600159838efe002c427e04e2c98 Mon Sep 17 00:00:00 2001 From: Mathew May Date: Wed, 8 May 2019 15:55:57 +1200 Subject: [PATCH] MDL-44484 admin: Remove existing user theme check --- admin/tool/uploaduser/index.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/admin/tool/uploaduser/index.php b/admin/tool/uploaduser/index.php index 2bc12066a1c..019da51e75d 100644 --- a/admin/tool/uploaduser/index.php +++ b/admin/tool/uploaduser/index.php @@ -648,15 +648,6 @@ if ($formdata = $mform2->is_cancelled()) { } } } - // Verify if the theme is valid and allowed to be set. - if (isset($existinguser->theme)) { - list($status, $message) = field_value_validators::validate_theme($existinguser->theme); - if ($status !== 'normal' && !empty($message)) { - $upt->track('status', $message, $status); - // Unset the theme when validation fails. - unset($existinguser->theme); - } - } // changing of passwords is a special case // do not force password changes for external auth plugins! -- 2.43.0