From 7079efb07805e4bc5971a531f881e0e036a1e643 Mon Sep 17 00:00:00 2001 From: habarnam Date: Sun, 1 Jun 2008 23:07:08 +0300 Subject: [PATCH] * modified the loader so it triggers a 404 error when the to is not found --- _res/loader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_res/loader.php b/_res/loader.php index d55a61e..fa5ae8a 100644 --- a/_res/loader.php +++ b/_res/loader.php @@ -10,6 +10,8 @@ if (!empty($to) && is_dir(PAGE_PATH . $to) && is_file(PAGE_PATH . $to . DIRECTOR }elseif (empty($to)) { $to = 'index'; include (PAGE_PATH . $to . DIRECTORY_SEPARATOR . 'code.php'); +} else { + $to = 'tsPage'; } $to = tsPage::getInstance ($to); -- 2.11.4.GIT