diff --git a/public/editor/editor-core.php b/public/editor/editor-core.php index f6da171..164805d 100644 --- a/public/editor/editor-core.php +++ b/public/editor/editor-core.php @@ -1,7 +1,7 @@
@@ -41,7 +41,7 @@ $ts = time(); function loadLocalScript(src, onok){ // Hinzufügen des Cache-Bust-Parameters zur URL // Die Variable $ts wird durch PHP im HTML-Kontext eingefügt - const url = src + (src.indexOf('?') === -1 ? '?v=' : '&v=') + =$ts?>; + const url = src + (src.indexOf('?') === -1 ? '?v=' : '&v=') + = json_encode($assetVersion) ?>; var s=document.createElement('script'); s.src=url; s.async=false; s.onload=function(){ logToParent('script-ok', src); onok&&onok(); }; s.onerror=function(){ var b=document.getElementById('badge'); if(b){ b.textContent='Fehlt: '+src; b.style.background='#fee2e2'; b.style.color='#7f1d1d'; b.style.borderColor='#fecaca'; } logToParent('script-missing', src); }; diff --git a/public/index.php b/public/index.php index d6cd6ee..1738ec9 100644 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,6 @@ @@ -18,10 +19,10 @@ $base = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') ?: ''; - + - +