From dac01f8dc5e3408296a3160fa29f029f23c70ae6 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Dec 2006 07:22:49 +0000 Subject: [PATCH] Replaced /etc/gosa with CONFIG_DIR git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5356 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/get_attachment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/get_attachment.php b/html/get_attachment.php index b95caec39..58bab226b 100644 --- a/html/get_attachment.php +++ b/html/get_attachment.php @@ -65,10 +65,10 @@ if(count($att)== 0){ return; } -if(!is_readable("/etc/gosa/glpi/".$att['filename'])){ - print sprintf(_("Can't open file '%s'."),"/etc/gosa/glpi/".$att['filename']); +if(!is_readable(CONFIG_DIR."/glpi/".$att['filename'])){ + print sprintf(_("Can't open file '%s'."),CONFIG_DIR."/glpi/".$att['filename']); } -$data = file_get_contents("/etc/gosa/glpi/".$att['filename']); +$data = file_get_contents(CONFIG_DIR."/glpi/".$att['filename']); /* force download dialog */ header("Content-type: ".$att['mime']."\n"); -- 2.30.2