Merge 776ceb2ef6
into df4d37bf13
This commit is contained in:
commit
a42a20a1e7
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ class Pico {
|
|||
else $file .= '.txt';
|
||||
|
||||
if(file_exists($file)) $content = file_get_contents($file);
|
||||
else $content = file_get_contents(CONTENT_DIR .'404.txt');
|
||||
else {
|
||||
$content = file_get_contents(CONTENT_DIR .'404.txt');
|
||||
header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
|
||||
}
|
||||
|
||||
$meta = $this->read_file_meta($content);
|
||||
$content = preg_replace('#/\*.+?\*/#s', '', $content); // Remove comments and meta
|
||||
|
|
Loading…
Add table
Reference in a new issue