From e346b7e88f2743e420eab2d8393170ca3cef68b0 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Tue, 18 May 2021 11:44:20 +0530 Subject: [PATCH] Bugfix --- adduser | 2 +- www/print-discharge.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5