Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-11-25 01:15:56 +0300
committerPhie <phie@phie.ovh>2019-11-25 01:15:56 +0300
commit1c2127120d91220e583b0ec51bff385e622bd0b0 (patch)
tree5f45771d684680749e0cad1ff1fc74d41c76646d /templates
parent496820f2b47c7c6f23a77833b2988db4a5c16247 (diff)
removing src for jquery
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/settings.php4
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