diff --git a/core/themes/bartik/color/color.inc b/core/themes/bartik/color/color.inc index f16403a57fdd5450e6aaa75687cf8e7e284c7710..0fe5ad5fc1b88dcfd8720a7bb67c4727c0c6b197 100644 --- a/core/themes/bartik/color/color.inc +++ b/core/themes/bartik/color/color.inc @@ -6,7 +6,9 @@ */ // Put the logo path into JavaScript for the live preview. -drupal_add_js(array('color' => array('logo' => theme_get_setting('logo.url', 'bartik'))), 'setting'); +$js = array('color' => array('logo' => theme_get_setting('logo.url', 'bartik'))); +$js_attached['#attached']['js'][] = array('data' => $js, 'type' => 'setting'); +drupal_render($js_attached); $info = array( // Available colors and color labels used in theme.