diff options
author | Phie <phie@phie.ovh> | 2019-11-25 01:15:56 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-11-25 01:15:56 +0300 |
commit | 1c2127120d91220e583b0ec51bff385e622bd0b0 (patch) | |
tree | 5f45771d684680749e0cad1ff1fc74d41c76646d | |
parent | 496820f2b47c7c6f23a77833b2988db4a5c16247 (diff) |
removing src for jquery
-rwxr-xr-x | templates/settings.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/settings.php b/templates/settings.php index bad4856..3573f52 100755 --- a/templates/settings.php +++ b/templates/settings.php @@ -12,8 +12,10 @@ $file = str_replace("href=\"","href=\"".$root."/CarnetElectron/",$file); $file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',function ($matches) { global $currentpath; global $appVersion; + global $fullscreen; + if($matches[2] === "libs/jquery.min.js" AND $fullscreen === "no") - return "<script src=\"\""; + return "<script "; return "<script".$matches[1]."src=\"".$matches[2]."?v=".$appVersion."\""; }, $file); // token is needed to pass the csfr check |