Commit d5331b57 authored by Kevin Abel's avatar Kevin Abel
Browse files

Merge branch '4.1' into 'master'

4.1

Add cache busting

Search was broken for those that had older versions of the assets cached.

See merge request !7
parents a208ced8 95965017
......@@ -28,7 +28,7 @@ function loadDefaultSections($page)
$isEmbed = isset($_GET['embed']) && $_GET['embed'];
$localScriptUrl = './js/search.min.js';
$localScriptUrl = './js/search.min.js?v=4.1';
$pageTemplate = 'Fixed';
if (UNL_Search::$mode === 'debug') {
......@@ -52,7 +52,7 @@ if (!$isEmbed) {
$localResults = '';
$context = '';
$page->addStyleSheet('css/search.css');
$page->addStyleSheet('css/search.css?v=4.1');
//u is referring site
if (isset($_GET['u']) && $scanned = UNL_Search::getScannedPage($_GET['u'])) {
......
Supports Markdown
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