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:
Diffstat (limited to 'templates/settings.php')
-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