X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/e3757ad55ac7f161d4de11e38fb57166a8ee85f7..39bd200baed00b5b63cc62ce947ef708710ac81c:/www/raw.php diff --git a/www/raw.php b/www/raw.php index 9128770..28f7c56 100644 --- a/www/raw.php +++ b/www/raw.php @@ -2,7 +2,7 @@ /** * Displays a file */ -namespace Phorkie; +namespace phorkie; require_once 'www-header.php'; $repo = new Repository(); $repo->loadFromRequest(); @@ -17,5 +17,5 @@ if ($mimetype === null) { $mimetype = 'text/plain'; } header('Content-Type: ' . $mimetype); -readfile($file->path); +readfile($file->getFullPath()); ?>