Commit cef84c18 authored by webchick's avatar webchick

Issue #2160603 by vijaycs85: Remove drupal_add_js() from Bartik.

parent 809f8cae
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment