diff options
author | Phie <phie@phie.ovh> | 2018-09-23 16:34:12 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2018-09-23 16:34:12 +0300 |
commit | 261ed0ec7aa159b4a893f66646c8dd9f6a9c93aa (patch) | |
tree | 5312bf9c1a0ec4dfa7a87749916de5c72c09752d /templates/writer.php | |
parent | 75f3f2b4f462fcc873fb93ad953e7c3522021f09 (diff) |
making app compliant
Diffstat (limited to 'templates/writer.php')
-rwxr-xr-x | templates/writer.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/templates/writer.php b/templates/writer.php index 59ba93c..3aace41 100755 --- a/templates/writer.php +++ b/templates/writer.php @@ -5,14 +5,11 @@ $file = file_get_contents($currentpath."reader/reader.html"); // $file = str_replace("href=\"","href=\"".substr(__DIR__, strlen($_SERVER['DOCUMENT_ROOT']))."/CarnetElectron/",$file); $file = str_replace("<!ROOTPATH>", "", $file); -//if($_['carnet_display_fullscreen']=="yes") -// script("carnet","../templates/CarnetElectron/compatibility/nextcloud/reader_fullscreen"); -//filemtime ( - $file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',function ($matches) { - global $currentpath; - return "<script".$matches[1]."src=\"".$matches[2]."?mtime=".filemtime($currentpath.$matches[2])."\""; - }, $file); +$file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',function ($matches) { + global $currentpath; + return "<script".$matches[1]."src=\"".$matches[2]."?mtime=".filemtime($currentpath.$matches[2])."\""; +}, $file); $root = substr(__DIR__, strlen($_SERVER['DOCUMENT_ROOT'])); $file = str_replace("src=\"","defer src=\"".$root."/CarnetElectron/",$file); |