core/includes/common.inc | 2 +- core/modules/quickedit/quickedit.module | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/includes/common.inc b/core/includes/common.inc index 0991b52..18b2028 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -1944,7 +1944,7 @@ function _drupal_add_library($library_name, $every_page = NULL) { // The parameters for _drupal_add_js() and _drupal_add_css() require special // handling. foreach (array('js', 'css') as $type) { - foreach ($library[$type] as $data => $options) { + foreach ($library[$type] as $options) { call_user_func('_drupal_add_' . $type, $options['data'], $options); } unset($elements['#attached'][$type]); diff --git a/core/modules/quickedit/quickedit.module b/core/modules/quickedit/quickedit.module index 7ed6f92..5066c14 100644 --- a/core/modules/quickedit/quickedit.module +++ b/core/modules/quickedit/quickedit.module @@ -99,7 +99,8 @@ function quickedit_library_alter(array &$library, $name, $theme = NULL) { } if (isset($info['quickedit_stylesheets']) && is_array($info['quickedit_stylesheets'])) { foreach ($info['quickedit_stylesheets'] as $path) { - $library['css'][$theme_path . '/' . $path] = array( + $library['css'][] = array( + 'data' => $theme_path . '/' . $path, 'group' => CSS_AGGREGATE_THEME, 'weight' => CSS_THEME, );