summaryrefslogtreecommitdiff
path: root/htdocs/page.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-02 18:21:43 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-02 18:21:43 -0700
commit18a8041cac4ef0e29b5afe0176c78cea5c9f20dd (patch)
treeab763bb7a02ba629664180c3f8412a7da297b537 /htdocs/page.php
parent4364c76c16103870fb4a4cf6be9261871195c06f (diff)
Changed to soft deletion and added 404 pages.
Diffstat (limited to 'htdocs/page.php')
-rw-r--r--htdocs/page.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/htdocs/page.php b/htdocs/page.php
index e843229..2ccc248 100644
--- a/htdocs/page.php
+++ b/htdocs/page.php
@@ -35,8 +35,14 @@ echo $page->getContent();
require_once "src/footer.inc.php";
function errorNotFound() {
- // TODO: Better 404 error
- echo "404";
+ // Get the 404 page
+ $page = Page::getByUrl('404');
+ if ($page) {
+ echo $page->getContent();
+ } else {
+ echo "Error: Page not found.";
+ }
+ require_once "src/footer.inc.php";
exit;
}