revision display support
[phorkie.git] / www / raw.php
index 9128770fe7b3ea1a7504204b59372a25e6b4334c..28f7c56ee6ca3475a68507e3de2e27ec422a48d7 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Displays a file
  */
 /**
  * Displays a file
  */
-namespace Phorkie;
+namespace phorkie;
 require_once 'www-header.php';
 $repo = new Repository();
 $repo->loadFromRequest();
 require_once 'www-header.php';
 $repo = new Repository();
 $repo->loadFromRequest();
@@ -17,5 +17,5 @@ if ($mimetype === null) {
     $mimetype = 'text/plain';
 }
 header('Content-Type: ' . $mimetype);
     $mimetype = 'text/plain';
 }
 header('Content-Type: ' . $mimetype);
-readfile($file->path);
+readfile($file->getFullPath());
 ?>
 ?>