diff options
author | Phie <phie@phie.ovh> | 2018-10-08 17:02:30 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2018-10-08 17:02:30 +0300 |
commit | c80b2c94b5888b7dbd06958efe96c372ca8e1d51 (patch) | |
tree | fb12a81cdeab329650cbae7e1731a4aae0aa2693 /templates/writer.php | |
parent | 2e246f5a7a0f363227d4f899215d71206d6a593a (diff) |
using more conventionnal ways to get path
Diffstat (limited to 'templates/writer.php')
-rwxr-xr-x | templates/writer.php | 4 |
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) { |