From a744cf3d75ff09e51ede00055afd504472ef845c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 5 Nov 2013 15:22:29 +0100 Subject: [PATCH] use the response --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 1e09d32..8bc11f7 100644 --- a/index.php +++ b/index.php @@ -189,7 +189,7 @@ function ml($file) { } } -function md($file) { +function md($file, $res) { $file = rtrim($file, "/"); if (is_file($file) || is_file($file .= ".md")) { $pi = pathinfo($file); @@ -209,7 +209,7 @@ function md($file) { break; } } else { - http\Env::setResponseCode(404); + $res->setResponseCode(404); printf("

Not Found

\n"); printf("

Sorry, I could not find %s/%s.

", dirname($file), basename($file, ".md")); } @@ -267,7 +267,7 @@ ob_start($s); ob_end_flush(); ?> - +