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-10-05 18:11:12 +0300
committerPhie <phie@phie.ovh>2019-10-05 18:11:12 +0300
commitb2f750f8cb9e96ffcf46992566db39cb4948f36d (patch)
tree1f03b8faabfb2d8eb4a03422abeb238bd3960132 /templates
parent58f6b261b4fcc485c7578b5af51ac64eaaafb41b (diff)
fix owncloud
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/index.php b/templates/index.php
index 5fd2fd1..21786a8 100755
--- a/templates/index.php
+++ b/templates/index.php
@@ -43,6 +43,10 @@ $nonce = "";
if (method_exists(\OC::$server, "getContentSecurityPolicyNonceManager")){
$nonce = \OC::$server->getContentSecurityPolicyNonceManager()->getNonce();
}
+else{
+ style("carnet","../templates/CarnetElectron/compatibility/nextcloud/owncloud");
+}
+
$file = str_replace("src=\"","defer nonce='".$nonce."' src=\"".$root."/CarnetElectron/",$file);
echo $file;
echo "<span style=\"display:none;\" id=\"root-url\">".$root."/CarnetElectron/</span>";