diff options
author | Phie <phie@phie.ovh> | 2019-03-03 03:32:03 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-03-03 03:32:03 +0300 |
commit | beb8a90826666ba41fb2012e2c92e47c7b5f4251 (patch) | |
tree | eac78adcc6e2de6c91eb556001e03b645665a0da /templates | |
parent | 2535030653ac592b670f8d95c76d23a40da18d36 (diff) |
avoid remaining caracter
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.php b/templates/index.php index ec285c0..352ccdd 100755 --- a/templates/index.php +++ b/templates/index.php @@ -15,7 +15,7 @@ $file = str_replace("href=\"","href=\"".$root."/CarnetElectron/",$file); $file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',function ($matches) { global $currentpath; if($matches[2] === "libs/jquery.min.js") - return ""; + return "<script src=\"\""; return "<script".$matches[1]."src=\"".$matches[2]."?mtime=".filemtime($currentpath.$matches[2])."\""; }, $file); |