From: hickert Date: Tue, 12 Dec 2006 07:22:49 +0000 (+0000) Subject: Replaced /etc/gosa with CONFIG_DIR X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dac01f8dc5e3408296a3160fa29f029f23c70ae6;p=gosa.git Replaced /etc/gosa with CONFIG_DIR git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5356 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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");