summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-16 08:28:40 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-16 08:28:40 +0000
commit2920848de931f357b66d853d02e32585f7ac3c50 (patch)
tree590c91e9e04c0acd8ad0f19c87d3ea75abea593b /modules/system/system.admin.inc
parent82aacc0c461327dc6dc2047c3d06d859ec1e1dbd (diff)
downloadbrdo-2920848de931f357b66d853d02e32585f7ac3c50.tar.gz
brdo-2920848de931f357b66d853d02e32585f7ac3c50.tar.bz2
- Patch #276615 by mikeytown2: only clear the CSS cache when submitting the form, not when displaying the form.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 5425ae15f..032827852 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -139,7 +139,6 @@ function system_settings_overview() {
* @see system_themes_form_submit()
*/
function system_themes_form() {
- drupal_clear_css_cache();
$themes = system_get_theme_data();
uasort($themes, 'system_sort_modules_by_info_name');
@@ -240,6 +239,7 @@ function system_themes_form() {
* Process system_themes_form form submissions.
*/
function system_themes_form_submit($form, &$form_state) {
+ drupal_clear_css_cache();
// Store list of previously enabled themes and disable all themes
$old_theme_list = $new_theme_list = array();