summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 852a7c8)
raw | patch | inline | side by side (parent: 852a7c8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 12 Dec 2006 07:22:49 +0000 (07:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 12 Dec 2006 07:22:49 +0000 (07:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5356 594d385d-05f5-0310-b6e9-bd551577e9d8
html/get_attachment.php | patch | blob | history |
index b95caec39a81764110311b0e45756aa93b3a1eb8..58bab226ba7b70656e4075a2cfe669b5eb7e9733 100644 (file)
--- a/html/get_attachment.php
+++ b/html/get_attachment.php
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");