From: Agnibho Mondal Date: Tue, 18 May 2021 06:14:20 +0000 (+0530) Subject: Bugfix X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=e346b7e88f2743e420eab2d8393170ca3cef68b0;p=simpleipd.git Bugfix --- diff --git a/adduser b/adduser index f878e29..d8bbb09 100755 --- a/adduser +++ b/adduser @@ -1,6 +1,6 @@ #! /usr/bin/env php prepare("SELECT * FROM users WHERE user=:user"); $stmt->bindValue(":user",$_SERVER["argv"][1]); diff --git a/www/print-discharge.php b/www/print-discharge.php index f1af38f..4b0e4bc 100644 --- a/www/print-discharge.php +++ b/www/print-discharge.php @@ -22,7 +22,7 @@ function json2tex($data){ } if(!empty($_GET["pid"])){ $pid=$_GET["pid"]; - $template=file_get_contents("discharge.tex"); + $template=file_get_contents(CONFIG_ROOT."discharge.tex"); if(!empty($_POST["discharge-note"])){ $template=str_replace("%[note]%", $_POST["discharge-note"], $template); }