diff options
author | Phie <phie@phie.ovh> | 2019-04-26 18:18:32 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-04-26 18:18:32 +0300 |
commit | c7cb306112dac8bf201a2f8bfb43f65fd333f742 (patch) | |
tree | eefbe8c146f5228ecee4f0887eff371d21eed47d /templates | |
parent | 70a0ea24791a7262b888d6196773c605e968c6ff (diff) |
fix nc16
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
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"); |