Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Created August 10, 2011 17:01
Show Gist options
  • Select an option

  • Save glennpratt/1137420 to your computer and use it in GitHub Desktop.

Select an option

Save glennpratt/1137420 to your computer and use it in GitHub Desktop.
diff --git a/www/modules/user/user.pages.inc b/www/modules/user/user.pages.inc
index 748f08c..e5f7e5b 100644
--- a/www/modules/user/user.pages.inc
+++ b/www/modules/user/user.pages.inc
@@ -293,10 +293,6 @@ function user_profile_form_submit($form, &$form_state) {
// Clear the page cache because pages can contain usernames and/or profile information:
cache_clear_all();
- if (user_access('select different theme')) {
- // This prevents the system theme from getting corrupted.
- init_theme();
- }
drupal_set_message(t('The changes have been saved.'));
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment