Display a regular 404 error when a project does not exist

This commit is contained in:
Sven Slootweg 2014-05-10 02:52:27 +02:00
parent 9456a01c34
commit 8854947866
4 changed files with 2 additions and 22 deletions

View file

@ -24,5 +24,5 @@ try
}
catch (NotFoundException $e)
{
$sRouterAuthenticated = false;
throw new RouterException("Project does not exist");
}

View file

@ -1,17 +0,0 @@
<?php
/*
* Cryto Team is more free software. It is licensed under the WTFPL, which
* allows you to do pretty much anything with it, without having to
* ask permission. Commercial use is allowed, and no attribution is
* required. We do politely request that you share your modifications
* to benefit other developers, but you are under no enforced
* obligation to do so :)
*
* Please read the accompanying LICENSE document for the full WTFPL
* licensing text.
*/
if(!isset($_APP)) { die("Unauthorized."); }
$sPageContents = NewTemplater::Render("error/project", $locale->strings, array());
$router->uVariables['page_type'] = "";

View file

@ -39,7 +39,7 @@ $presets = array(
"project" => array(
"_page_type" => "project",
"authenticator" => "authenticators/project.php",
"auth_error" => "modules/error/project.php"
"auth_error" => ""
)
);

View file

@ -1,3 +0,0 @@
<section>
The project you are looking for does not appear to exist.
</section>