diff options
-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 3aace41..8240d25 100755 --- a/templates/writer.php +++ b/templates/writer.php @@ -14,10 +14,10 @@ $root = substr(__DIR__, strlen($_SERVER['DOCUMENT_ROOT'])); $file = str_replace("src=\"","defer src=\"".$root."/CarnetElectron/",$file); +$file = str_replace("<!ROOTURL>", $root."/CarnetElectron/", $file); +$file = str_replace("<!APIURL>", "../../../index.php/apps/carnet/", $file); echo $file; -echo "<span style=\"display:none;\" id=\"root-url\">".$root."/CarnetElectron/</span>"; -echo "<span style=\"display:none;\" id=\"api-url\">../../../index.php/apps/carnet/</span>"; ?>
\ No newline at end of file |