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>2018-10-08 17:02:30 +0300
committerPhie <phie@phie.ovh>2018-10-08 17:02:30 +0300
commitc80b2c94b5888b7dbd06958efe96c372ca8e1d51 (patch)
treefb12a81cdeab329650cbae7e1731a4aae0aa2693 /templates/writer.php
parent2e246f5a7a0f363227d4f899215d71206d6a593a (diff)
using more conventionnal ways to get path
Diffstat (limited to 'templates/writer.php')
-rwxr-xr-xtemplates/writer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/writer.php b/templates/writer.php
index 6716318..3fb973d 100755
--- a/templates/writer.php
+++ b/templates/writer.php
@@ -1,7 +1,7 @@
<?php
-$currentpath = getcwd()."/CarnetElectron/";
+$currentpath = getcwd()."/";
-$file = file_get_contents($currentpath."reader/reader.html");
+$file = file_get_contents($currentpath."CarnetElectron/reader/reader.html");
$file = str_replace("<!ROOTPATH>", "CarnetElectron/", $file);
$file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',function ($matches) {