Navigation Menu

Skip to content

Commit

Permalink
Get custom 404 pages working again
Browse files Browse the repository at this point in the history
  • Loading branch information
kolber committed May 30, 2012
1 parent 3bd5e02 commit 7012382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/stacey.inc.php
Expand Up @@ -137,7 +137,8 @@ function __construct($get) {
# return 404 headers # return 404 headers
header('HTTP/1.0 404 Not Found'); header('HTTP/1.0 404 Not Found');
if(file_exists(Config::$content_folder.'/404')) { if(file_exists(Config::$content_folder.'/404')) {
$this->create_page(Config::$content_folder.'/404', '404'); $this->route = '404';
$this->create_page(Config::$content_folder.'/404');
} }
else if(file_exists('./public/404.html')) { else if(file_exists('./public/404.html')) {
echo file_get_contents('./public/404.html'); echo file_get_contents('./public/404.html');
Expand Down

0 comments on commit 7012382

Please sign in to comment.