From 6f2a7ca40c138f626641503000774f5d0cc0d95c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Mar 2015 10:52:43 +0000 Subject: [PATCH] fix sub-template of modified etemplate (WebDAV Url) wont work, as cache-buster / timestamp got added without download prefix, causing WebDAV to not find sub-template, because it treats everything but "?download" as part of URL --- etemplate/js/et2_widget_template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_template.js b/etemplate/js/et2_widget_template.js index 4ec04a7fdb..a4f21a375c 100644 --- a/etemplate/js/et2_widget_template.js +++ b/etemplate/js/et2_widget_template.js @@ -105,7 +105,7 @@ var et2_template = et2_DOMWidget.extend( var splitted = template_name.split('.'); // use template base url from initial template, to continue using webdav, if that was loaded via webdav var path = this.getRoot()._inst.template_base_url + splitted.shift() + "/templates/default/" + - splitted.join('.')+ ".xet" + (cache_buster ? '?'+cache_buster : + splitted.join('.')+ ".xet" + (cache_buster ? '?download='+cache_buster : // if server did not give a cache-buster, fall back to current time '?download='+(new Date).valueOf());