Commit c114c815 authored by webchick's avatar webchick

Issue #1824848 by spearhead93, catch, mtift: Remove drupal_js_version_string()...

Issue #1824848 by spearhead93, catch, mtift: Remove drupal_js_version_string() variable (instead of converting it).
parent 0dd4b14f
......@@ -51,10 +51,6 @@ public function render(array $js_assets) {
$embed_prefix = "\n<!--//--><![CDATA[//><!--\n";
$embed_suffix = "\n//--><!]]>\n";
// Since JavaScript may look for arguments in the URL and act on them, some
// third-party code might require the use of a different query string.
$js_version_string = variable_get('drupal_js_version_query_string', 'v=');
// Defaults for each SCRIPT element.
$element_defaults = array(
'#type' => 'html_tag',
......@@ -83,7 +79,7 @@ public function render(array $js_assets) {
break;
case 'file':
$query_string = empty($js_asset['version']) ? $default_query_string : $js_version_string . $js_asset['version'];
$query_string = empty($js_asset['version']) ? $default_query_string : 'v=' . $js_asset['version'];
$query_string_separator = (strpos($js_asset['data'], '?') !== FALSE) ? '&' : '?';
$element['#attributes']['src'] = file_create_url($js_asset['data']);
// Only add the cache-busting query string if this isn't an aggregate
......
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