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-04-26 18:18:32 +0300
committerPhie <phie@phie.ovh>2019-04-26 18:18:32 +0300
commitc7cb306112dac8bf201a2f8bfb43f65fd333f742 (patch)
treeeefbe8c146f5228ecee4f0887eff371d21eed47d
parent70a0ea24791a7262b888d6196773c605e968c6ff (diff)
fix nc16
-rwxr-xr-xappinfo/info.xml2
-rwxr-xr-xtemplates/index.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index fd8c3a1..788ef8e 100755
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -31,7 +31,7 @@ Mac, with sync capabilities
<filesystem/>
</types>
<dependencies>
- <nextcloud min-version="13" max-version="15"/>
+ <nextcloud min-version="13" max-version="16"/>
</dependencies>
<navigations>
<navigation>
diff --git a/templates/index.php b/templates/index.php
index 352ccdd..e6a1d0b 100755
--- a/templates/index.php
+++ b/templates/index.php
@@ -19,8 +19,11 @@ $file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',functi
return "<script".$matches[1]."src=\"".$matches[2]."?mtime=".filemtime($currentpath.$matches[2])."\"";
}, $file);
-if($_['carnet_display_fullscreen']==="yes")
+if($_['carnet_display_fullscreen']==="yes"){
script("carnet","../templates/CarnetElectron/compatibility/nextcloud/browser_fullscreen");
+ if($_['nc_version']>=16)
+ style("carnet","../templates/CarnetElectron/compatibility/nextcloud/nc16");
+}
else {
if($_['nc_version']>=14)
style("carnet","../templates/CarnetElectron/compatibility/nextcloud/nc14-header");