updating error handler and erro404 template. closes #4799

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7073 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-05-31 04:50:38 +00:00
parent c57b5611a0
commit 7ed4665318
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ class ErrorHandler extends Object {
$this->controller->set(array(
'code' => '404',
'name' => __('Not Found', true),
'message' => sprintf(__("The requested address %s was not found on this server.", true), "<strong>'{$url}'</strong>"),
'message' => h($url),
'base' => $this->controller->base
));
$this->__outputMessage('error404');

View file

@ -27,5 +27,5 @@
<h2><?php echo $name; ?></h2>
<p class="error">
<strong><?php __('Error'); ?>: </strong>
<?php echo $message; ?>
<?php echo sprintf(__("The requested address %s was not found on this server.", true), "<strong>'{$message}'</strong>")?>
</p>