Skip to content

Commit

Permalink
Use plugin version for cachebusting
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed May 8, 2020
1 parent e1ad182 commit ecdf81b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Html5MediaPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,14 @@ private function _head()
queue_js_string($l10nScript);
}

queue_js_file('mediaelement-and-player.min', 'mediaelement');
queue_css_file('mediaelementplayer-legacy.min', 'all', false, 'mediaelement');
queue_css_file('html5media', 'all');
$pluginLoader = Zend_Registry::get('plugin_loader');
$html5media = $pluginLoader->getPlugin('Html5Media');
$version = $html5media->getIniVersion();
queue_js_file('mediaelement-and-player.min', 'mediaelement', array(), $version);
queue_css_file('mediaelementplayer-legacy.min', 'all', false, 'mediaelement', $version);
queue_css_file('html5media', 'all', null, 'css', $version);
if (is_admin_theme()) {
queue_css_file('html5media-mejs-overrides', 'all');
queue_css_file('html5media-mejs-overrides', 'all', null, 'css', $version);
}
}

Expand Down

0 comments on commit ecdf81b

Please sign in to comment.